¯\_(ツ)_/¯

thunder@home:~$

This is my home blog, mostly to share some useful info or code snippets
< 1 min

I had to deploy whole infrastructure on new server and I had to install the same set of perl modules as it was on my dev server.

To do this, we need to generate list of all installed modules.

perl -MCPAN -eautobundle

This will find all installed modules and their distribution names, then store gathered information in a snapshot file. When this all done, the final message message will look like this:

Wrote bundle file
/root/.cpan/Bundle/Snapshot_2014_10_30_00.pm

Now, copy this file into new server under /root/.cpan/Bundle/Snapshot_2014_10_30_00.pm and then just run

perl -MCPAN -e 'install Bundle::Snapshot_2014_10_30_00'

This will install all modules from snapshot.

Thank You For Reading