>>>>> On Wed, 29 Jun 2011 23:35:22 -0700, nimectos <tt4g-x...@dea.spamcon.org> 
>>>>> said:

  > I finally succeeded, with some difficulties.

  > First, the CPAN version (v1.7602) provided with that distro is apparently
  > broken.

Eight years and more than 120 releases have accumulated on top of this
version. Pity you have to work with such old stuff.

  > [...]

  > Then I installed needed modules via "cpan module module ...".  That went
  > fine, but it still prompts:
  > - MIME::Lite "Add prereqs?" prompt for extra external modules.
  > - Crypt::SSLeay prompts for install path and live tests.

  > How can I pre-set the answers to those?

Make sure you have a recent CPAN.pm and read the manpage section

    Configuration for individual distributions (Distroprefs)

  > [...]

  > So I was thinking of just archiving the installed modules from the source
  > machine and unarchiving on the destination, e.g. just tar up:
  >     /usr/lib/perl5/*
  >     /usr/lib64/perl5/*
  > and restore on the target (ignoring module docs).  Would that work?  (I'd
  > still unarchive the .cpan sources so they are present, just wouldn't build
  > them via cpan commands).

If the architectures are sufficiently similar it's likely to work.

  > CPAN question: how can I list all installed modules?  The closest I could
  > find is the "r" command, but it's not clear if that is listing every
  > installed modules, or just those that are candidates for upgrades.

You're looking for for 'autobundle'. Much to my surprise, 'r' is
undocumented indeed. Will be in the next release. And yes, it only lists
upgradeable modules.

-- 
andreas

Reply via email to