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

Masters - I have many *NIX machines, all without interent access. So I provisioned one of them as a server for a CPAN::Mini mirror. But building and maintaining the mirror is tedious. I must build it on my home Linux box and schlep it into work on a flash drive. However, I have windoze boxen with internet access (via browser only) that I can SFTP to the *NIX boxen. Is there a place where I can download a pre-built CPAN::Mini mirror (as a tar.gz or whatever)? This is something I would only want to do once a month or so.
  • Comment on Is there a place to download a pre-built CPAN::Mini mirror?

Replies are listed 'Best First'.
Re: Is there a place to download a pre-built CPAN::Mini mirror?
by Anonymous Monk on Apr 12, 2016 at 00:31 UTC

    No, I don't think so , I've never heard of one ... since the idea is to only download the module you need ... so a tarball you would have to host yourself

    If its a hassle it must not be that important to have a full mirror :) and having the latest versions is overrated :D

Re: Is there a place to download a pre-built CPAN::Mini mirror?
by soonix (Chancellor) on Apr 12, 2016 at 15:41 UTC
      Or run perl/CPAN::Mini under Cygwin, or in a VM, or on the new Windows 10 Ubuntu/Linux subsystem... there are many alternatives.
        hmm...if only browser has internet access, cpan in a browser? what?
Re: Is there a place to download a pre-built CPAN::Mini mirror?
by cavac (Prior) on Apr 14, 2016 at 05:55 UTC

    I hope i understand your network setup correctly (i had to fill in a few blanks with sane defaults).

    Probably the easiest solution would be to write a batch script on one of the windows boxes that runs the the CPAN-Mini update (mcpani --update) and then "rsync -e ssh..." to on of the unix boxes.

    If the Perl installation on the Windows box is configured correctly (Proxy settings in ENV http_proxy and whatnot) and you install rsync for Windows, this should pretty much work. After verifying, you could add that to the planned tasks, so it runs every day/wee/month automatically.

    What i don't understand is this: How do you install security updates and such on your Unix boxes if they can't download from the internet? Manually?? That sounds like a security problem in itself...

    "For me, programming in Perl is like my cooking. The result may not always taste nice, but it's quick, painless and it get's food on the table."
Re: Is there a place to download a pre-built CPAN::Mini mirror?
by soonix (Chancellor) on Apr 14, 2016 at 05:52 UTC
    I had overlooked the "via browser only". Is that an admnistrative policy, or just a fuzzy translation for "via proxy only"? In the latter case, it might be possible to copy the proxy settings into the cpan config.