Better way to mirror CPAN locally?
mark at twoshortplanks.com
Mon May 7 13:50:36 BST 2012
On Monday, 7 May 2012 at 13:21, gvim wrote:
> I currently use the script listed below, provided by Randall Schwartz, to mirror CPAN locally as I spend a lot of time Perl-ing without an internet connection. With CPAN now totalling around 2GB I'm wondering if there isn't a more efficient method as this script doesn't use any kind of rsync method and I end up just downloading the whole 2GB every time.
The script you provided is designed to keep a mirror of only the parts of CPAN that you can install via the CPAN shell (i.e. not keep a copy of dev versions and old versions of distributions). Assuming you want the same thing, rsync is not the answer as that'll suck down a whole host of stuff you don't want on disk.
However: The more modern CPAN::Mini https://metacpan.org/module/minicpan can do the same thing and subsequent runs only download indexes and distributions. It's probably what you're looking for.
More information about the london.pm