japharl has asked for the wisdom of the Perl Monks concerning the following question:

Hello all,
I'm trying to make an offline mirror of all of cpan. I'm first rsyncing a copy of cpan over from a mirror, then I'm using File::Find to find all new modules which I need to copy over to the offline mirror. There are a lot of symlinks within a cpan directory. Currently, if I encounter a symlink, I just skip the symlink, rather than trying to traverse it. But I'm wondering, does any part of CPAN require the symlinks exist for module installs?
Thanks japharl

Replies are listed 'Best First'.
Re: cpan mirror soft links...
by marto (Cardinal) on Jan 04, 2009 at 17:10 UTC

    japharl,

    If you are trying to make an offline cpan mirror use minicpan, which you can also use to update your mirror in future.

    Hope this helps

    Martin

Re: cpan mirror soft links...
by xdg (Monsignor) on Jan 04, 2009 at 19:14 UTC
    But I'm wondering, does any part of CPAN require the symlinks exist for module installs?

    No, it doesn't.

    minicpan doesn't create them and the resulting mini CPAN mirror works just fine. As marto said, it sounds like that is exactly what you want, and it's already written for you and well-tested.

    And if you want to include the latest development versions of distributions in your minicpan mirror, use CPAN::Mini::Devel.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.