http://www.perlmonks.org?node_id=944112


in reply to Re^2: CPAN - As Seen From Space!
in thread CPAN - As Seen From Space!

Thanks, I have figured it out. Created source_data dir and put these files there:
01mailrc.txt.gz 02packages.details.txt.gz all_ratings.csv
Other things I had to change were minor, like lib path in the script and some nginx settings after they were written by puppet. Puppet also was unable to install 3 perl modules, which I then installed with cpan.

Replies are listed 'Best First'.
Re^4: CPAN - As Seen From Space!
by grantm (Parson) on Dec 18, 2011 at 05:26 UTC

    When the script is run with the --refresh-data option it will download the latest version of those files.

    My personal preference on Debian/Ubuntu systems is to never install modules directly from CPAN. I use dh-make-perl to download the tarball, and build a .deb e.g.:

    dh-make-perl --build --cpan Math::PlanePath

    The .deb package can then be installed with dpkg or dropped into a repo. For a small hobby project like this it could be seen as overkill (although it's actually quick and easy). For bigger work-related projects it's invaluable to know that the same module version is being installed in dev, staging and production (rather than getting the latest version when you do your production rollout and getting a nasty surprise).