Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: A master-list of module dependencies?

by DapperDan (Pilgrim)
on Jul 11, 2004 at 20:22 UTC ( #373511=note: print w/replies, xml ) Need Help??


in reply to Re: A master-list of module dependencies?
in thread A master-list of module dependencies?

It seems to me that you are still expected to develop your own custom rsync/cron configuration to mirror CPAN. Frankly, that's too much effort for an ordinary developer; it's easier to just use CPANPLUS, or suffer on when you're offline.

I think if there were HOWTOs for platforms, e.g. MacOS X, each BSD, each Linux distribution, more people would be mirroring CPAN (e.g. on their laptops).

The intersection set between Perl application developers and those who are willing to invest half a day in setting up a CPAN mirror may not be that large. I know that the payoff isn't good enough for me, but I would do it if it were cheaper in terms of effort.

  • Comment on Re: A master-list of module dependencies?

Replies are listed 'Best First'.
Re^2: A master-list of module dependencies?
by adrianh (Chancellor) on Jul 11, 2004 at 20:54 UTC
    I think if there were HOWTOs for platforms, e.g. MacOS X, each BSD, each Linux distribution, more people would be mirroring CPAN (e.g. on their laptops).

    Like the How to mirror CPAN section of the CPAN FAQ you mean :-)

    Basically:

    rsync -av --delete rsync.mirror.of.your.choice::CPAN mycpan

    should do the job.

Re^2: A master-list of module dependencies?
by biosysadmin (Deacon) on Jul 11, 2004 at 21:47 UTC
    As adrianh has pointed out, mirroring CPAN is not very hard at all. Here's the two lines from my crontab that do the job just fine:
    # Update CPAN mirror at 2am every Sunday 0 2 * * 0 /usr/local/bin/rsync -av --delete cpan.mirror.findityourself +.com::CPAN /var/apache/htdocs/CPAN/ >> /dev/null 2>&1
    That took me about 10 minutes to set up the very first time, which really isn't half of a day. Extending it to any Unix-ish system (such as Linux, BSD or MacOSX) should take about 5 minutes. That's much less than half of a day. Unless you live on a planet like Mercury. :P
      I stand corrected. This is a clear case of RTFM if ever there was one.

      Thank you both...

Re^2: A master-list of module dependencies?
by DrHyde (Prior) on Jul 12, 2004 at 08:34 UTC
    What's so hard about 0 0 * * * (cd ~me/CPAN-mirror &&  rsync -av --bwlimit=15 --delete rsync.nic.funet.fi::CPAN .)?
Re^2: A master-list of module dependencies?
by rrwo (Friar) on Jul 12, 2004 at 20:25 UTC

    Most people do not mirror CPAN on their machines because they will never need a majority of the modules.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2020-07-07 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?