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'

Proxy





Updated: Mon Sep 19 14:21:20 2011