x
Loading
 Loading
Hello, Guest | Login | Register

Browsing a Local CPAN Mirror

Last month, I showed how to fetch a subset of the CPAN (Comprehensive Perl Archive Network) to create a local mini-mirror. The subset included just the latest distribution of each module, plus the index files, so that the CPAN.pm module could install and update your local modules.

Last month, I showed how to fetch a subset of the CPAN (Comprehensive Perl Archive Network) to create a local mini-mirror. The subset included just the latest distribution of each module, plus the index files, so that the CPAN.pm module could install and update your local modules.

I can use the mini-mirror to install CPAN modules when I’m disconnected from the net (like when I’m on a cruise ship for Geek Cruises, or at 30,000 feet, jetting off to another Perl training site).

But I often find myself just browsing through the recent additions to the CPAN to see what’s new, what’s cool, and what’s being updated. That’s easy to do online, because http://search.cpan.org provides a “Recent Additions” link. But offline, the data is much less readily available as the RECENT file shows only a few days of past activity. Worse, my mini-mirror doesn’t download either the RECENT file or any of the README extractions for the distributions.

So, I started wondering if there was a way I could use just my mini-CPAN and still browse the newest distributions, or even better, dump out the README files for those distributions if they existed. Surely, the information was there in the form of the mirrored timestamps on the distributions themselves. And the README files, while not extracted, were certainly present inside the tar.gz files. And that led me to create the program presented in Listing One.

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. Helpful Tools for Software Developers
  2. The Github Hall of Fame
  3. Book'em, Github.
  4. This Week on Github: Stupid Ruby Tricks
  5. A Veritable Scatter Shot!
Follow Linux Magazine
Rackspace