A cool cpan tool can be used to make a backup or snapshot of the current list of perl modules installed, either for reinstalling them, or for installing the same modules on another server.  On the server you want to backup, run:
perl -MCPAN -e autobundle
This creates a file called /root/.cpan/Bundle/Snapshot_<year>_<month>_<day>.pm. You can move that file to another server, cd to the directory of the file, and run:
perl -MCPAN -e ‘install Bundle::Snapshot_<year>_<month>_<day>
cpan will then install all of the same modules.
Brad Crotchett
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment