 | cpan |
web home | unix geek tools
Pointers
Find modules available for upgrade
# 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)'
Build an autobundle
# 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'
upgrading CPAN module
perl -MCPAN -e shell
install CPAN
reload CPAN
install Bundle::CPAN
automatically answering questions 'yes'
- conf init policy
- run interactive configuration of all options matching policy
- export PERL_MM_USE_DEFAULT=1
- use default answers to questions using ExtUtils::MakeMaker::prompt
- export PERL_EXTUTILS_AUTOINSTALL=--defaultdeps
- use default dependencies when prompted directly by modules
- o conf prerequisites_policy follow
- o conf build_requires_install_policy yes
- o conf commit
Proxy
- o conf init proxy
- o conf commit
Updated: Mon Sep 19 14:21:20 2011