Caveat: Though I have used wget a lot, I have never mirrored CPAN

1. You may need to find the package called mirror elsewhere; at least from my part of the net I can't see it on sunsite.

2. Wget or rsync may be very good. But watch out, though I have no idea who did it, search.cpan.org once blackholed a huge network area due to some idiot who tried to snarf down every page from their engine and overloaded the site. They recently un-blackholed the network (which happens to be a giant Internet provider that also happens to serve an Internet cafe near my house in Tokyo), but felt it was a completely valid response. So watch out with that wget partner! Conversely, it may not matter but if wget hits a robots.txt exclusion file it ignores it for the top url only in a recursive download.

3. I'm guessing that if you don't download obsolete versions it might really fit into a CD. Anybody?

4.Possibly the programmer's interface to cpan (I suppose CPAN::Shell->expand("Module","/*/") or something similar might do it but not sure if you wouldn't miss some things. Conceivably CPAN's get command might just do it all for you, dunno.

4. Note some modules apparently don't have version numbers.


In reply to Re: Create minimal offline CPAN mirror by mattr
in thread Create minimal offline CPAN mirror by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.