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


in reply to Create minimal offline CPAN mirror

Can any one suggest a sane way to do this, obviously some munging of 02packages.details.txt is required.
Based on that comment, I hacked out an 85-line program for my next LM column that does just that. It fetches everything you'd need to install any module in the modules list using CPAN.pm, and deletes anything old.

The current "mini-CPAN" size is just a bit under 300M. Easily fit on a CDROM. Cool.

The first time you run it, it sequentially fetches all of the modules, which is nicer on the source machine than doing them in parallel. After that, it fetches just what might have changed.

-- Randal L. Schwartz, Perl hacker


update: I posted this at Mirror only the installable parts of CPAN.
  • Comment on •Re: Create minimal offline CPAN mirror

Replies are listed 'Best First'.
Re: •Re: Create minimal offline CPAN mirror
by mattr (Curate) on Aug 08, 2002 at 11:10 UTC
    Cool!!! Mad props to Merlyn.

    The ultimate present for the japh who has got it all.
    And still plenty of room to spare on the CD!

    I starting wondering how long before CPAN doubles to almost fill that CD.. but couldn't find a graph of CPAN growth. Can anybody post copies of du-k.gz with the date of download on it? A small sample and we can build a curve. I just downloaded one and called it du-k.2002-0808.gz (though I think the browser or somebody decompressed it before I saw it).