Re^2: A master-list of module dependencies?
by rrwo (Friar) on Jul 12, 2004 at 20:21 UTC
|
Is downloading every module really that much of a hassle?...
Not really, but it seems that this information should already be out there. As far as I can tell, it's not. So I'm in the process of generating my own list. What I'm doing:
- If there is a .meta file available, I use that,
- otherwise I download the module, extract the Makefile.PL
and do some simple parsing using a module I wrote called
Module::MakefilePL::Parse
(since Module::Depends
uses modules which do not work well on Windows -- ironically this was one of the reasons I started on this project)
| [reply] [Watch: Dir/Any] |
Re: A master-list of module dependencies?
by DapperDan (Pilgrim) on Jul 11, 2004 at 20:22 UTC
|
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. | [reply] [Watch: Dir/Any] |
|
rsync -av --delete rsync.mirror.of.your.choice::CPAN mycpan
should do the job. | [reply] [Watch: Dir/Any] [d/l] |
|
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 | [reply] [Watch: Dir/Any] [d/l] |
|
I stand corrected. This is a clear case of RTFM if ever there was one.
Thank you both...
| [reply] [Watch: Dir/Any] |
|
What's so hard about 0 0 * * * (cd ~me/CPAN-mirror && rsync -av --bwlimit=15 --delete rsync.nic.funet.fi::CPAN .)?
| [reply] [Watch: Dir/Any] [d/l] |
|
| [reply] [Watch: Dir/Any] |
Re^2: A master-list of module dependencies?
by rrwo (Friar) on Nov 17, 2004 at 22:18 UTC
|
Is downloading every module really that much of a hassle?
Now that I have moved to a place with poor internet connectivity, yes.
However, I have a source for some of my information from CPANTS.
| [reply] [Watch: Dir/Any] |