in reply to Isn't there a quick way to "install all the CPAN modules that are here..."

The cpan-shell has an autobundle command.

autobundle
autobundle writes a bundle file into the $CPAN::Config->{cpan_home}/Bundle directory. The file contains a list of all modules that are both available from CPAN and currently installed within @INC. The name of the bundle file is based on the current date and a counter.

You can then copy the bundle file to the other machine and feed it to cpan. It will then clone the first system to the second system.

Of course, the bundle file will also contain core modules, but cpan is bright enough not to do any unnecessary installs.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: Isn't there a quick way to "install all the CPAN modules that are here..."

Replies are listed 'Best First'.
Re^2: Isn't there a quick way to "install all the CPAN modules that are here..."
by locked_user sundialsvc4 (Abbot) on May 24, 2011 at 12:04 UTC

    Excellent.   “It’s all com - ing back to me now ...”   (Uhh, sorry for conjuring up Celine Dione so early in the morning.   You know that song’s gonna be stuck in your head, and mine, for the rest of the day ... urk.)   I knew that it was available, and that it was simple.   I presume that it will not be of concern that the target machine has an earlier Perl version (as it happens...) than the source machine does?   Oh, of course, of course ...