Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Which modules on the whole CPAN depends on this module?

by ambrus (Abbot)
on Jul 05, 2013 at 07:46 UTC ( #1042641=note: print w/ replies, xml ) Need Help??


in reply to Which modules on the whole CPAN depends on this module?

You can use rsync to keep a local mirror of the module metafiles only from a CPAN mirror. This takes much less disk space than mirroring the whole CPAN, and if you've downloaded them once you can use rsync to keep it up to date while transferring only the new files on the net. A command like rsync -Rvz "cpan.some.mirror.com::CPAN/modules/by-authors/id/?/??/./*/*.meta" "cpan.some.mirror.com::CPAN/modules/02packages.details.txt" /path/to/local/mirror should work if you change the url to a CPAN mirror close to you.

Once you've got the metafiles and the 02packages.details.txt, you can parse them and search in them. The metafiles contain the dependenct modules of each distribution, and the 02packages.details.txt tells which distributions provide which modules.


Comment on Re: Which modules on the whole CPAN depends on this module?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-12-28 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls