Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

•Re: Create minimal offline CPAN mirror

by merlyn (Sage)
on Aug 08, 2002 at 01:23 UTC ( #188501=note: print w/ replies, xml ) Need Help??


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
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).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://188501]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (15)
As of 2014-07-25 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (174 votes), past polls