Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Following on my recent question about running Perl on a USB key, I'd like to ask about what would constitute a minimal Perl installation that could only run one prgram that only uses:

use warnings; use strict; use File::Copy; use File::Path;

This is a bootable Linux USB key that is used to perform upgrades.

So, now my approach is to use a freshly-made LFS (Linux From Scratch) system from which I extract the configured kernel and the needed system binaries and libs (bare minimum since on each I run ldd and only include what's really needed on the USB key).

So the OS/boot part is covered. I could simply copy the whole Perl installation that's part of LFS to the USB key, but it'd be nice to save some space.

So what's really, really needed to run Perl ? I can ldd the perl executable, so that's OK. But what about all the other files ? Config.pm seems important. Architecture will the same i686 (but then, would it be possible to boot on a i586 platform and Perl could still find all its required files ?).

I surely need the warnings, strict, File::Copy and File::Path modules. What else ?

Any suggestions/ideas welcomed, Al


In reply to Minimal Perl by carcassonne

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2023-01-30 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?