cpan |
# determine which perl modules are outdated perl -MCPAN -e 'CPAN::Shell->r' # upgrade all outdated perl modules perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
# generate list of installed modules # produces snapshot file, e.g. Snapshot_2004_08_08_00.pm perl -MCPAN -e autobundle # remove version numbers from autobundle to install latest version: perl -pi -e's|^([\w\:]+) [\d\.]+$|$1 undef|' /path/to/Snapshot_... # Install modules from generated autobundle perl -MCPAN -e 'install Bundle::Snapshot_2004_08_08_00'
perl -MCPAN -e shell install CPAN reload CPAN install Bundle::CPAN