Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I just do it the simple way you describe, though I sort the modules into dependency order manually. This also allows me to patch modules before building, e.g. to fix broken Makefile.PL behaviour. Most interactivity can be suppressed using perl Makefile.PL </dev/null. For duplicate installations we just sync the installation tree onto the other target machines.

    I don't have many different or fast-changing installations to manage, though.

    • Depressingly this is the same solution I use, I've tried other solutions. Automated install scripts, PAR, a couple of other things. None really worked as well.
  • Pull a minicpan mirror at a point in time you think you like.

    Then do a full install with the appropriate flags on to stop questions.

    Then deleting any files where the atime hasn't moved.

    Keep that shrunk minicpan as your install source.
  • Put all your tarballs in a dir, then:

    cd /dir/with/tarballs
    ls -1 | grep tar.gz > packages.txt
    cpanplus
    /cs --add file:///dir/with/tarballs
    i The::Dist::That::Requires::All::The::Rest

    For added savety, remove all cpan mirrors from the cpanplus config

    • Unfortunately that works okay right up until the point where you have XS and libraries that aren't installed as standard. At that point you installation becomes, rather custom.
  • Another approach is to create an autobundle file and get it in the correct order. I made one attempt at doing this programatically a few years ago and posted it here:

    http://perlmonks.org/?node_id=455259 [perlmonks.org]

    I think there have been some more recent attempts to provide better dependency information, so I'm sure it could be updated. Also, it seems many people would have similar autobundles, so we should probably have a place for people to post their autobundles once they've got them in the correct order.