Brad and Kim

Thoughts and musings from Brad and Kim

Brad and Kim header image 2

Perl autobundle for perl module backup or reinstall

February 18th, 2008 · No Comments

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

Tags: Linux

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment