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

Using MiniCPAN as Local CPAN

Y'all;

I need to build a complete CPAN mirror for use behind our corporate firewall. I found minicpan, and like how easy it was to build the mirror. So I have that put into an environment which has access to the "outside world" where it can push the mirror to a location accessible from the "inside world."

Now I need to configure cpan/cpanm to use that mirror.

I've done my searching about the internet, and found a lot of folks who said how to use the mirror on the local box -- meaning the box it is on (with file://whatever/). But I need to access the one mirror from across the entire inside world. I tried ftp://hostname/fqpn and made a link in /var/www/cpan to where it resides and tried http://hostname/cpan, but neither one worked. I'm sure I am just missing one little point, but it hasn't jumped out at me just yet.

I'm not afraid to hack about until I get it working, but I'm sure that someone here has already perfected the process. And if not, then at least several folks have already tried and can tell me what didn't work, so I don't waste my time with that.

Once I have the perfect process done, I'll come back and post the steps here for others who might want to try to do the same thing.

Thanks muchly, DL

Lee Crites
lee@critesclan.com
  • Comment on How to use the MiniCPAN mirror as the corporate mirror behind the firewall...

Replies are listed 'Best First'.
Re: How to use the MiniCPAN mirror as the corporate mirror behind the firewall...
by marto (Cardinal) on Nov 21, 2017 at 22:20 UTC

    My process for this is fairly simple. I transfer the mirror created by minicpan, and host it behind a webserver, e.g. http://servername/cpan. Then it's simply a case of configuring your clients to use this.

    • cpan: cpan[0]> o conf urllist http://servername/cpan/
    • cpanm: use the PERL_CPANM_OPT environment variable.