Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

RonW's scratchpad

by RonW (Priest)
on Mar 31, 2014 at 20:07 UTC ( #1080445=scratchpad: print w/replies, xml ) Need Help??

This is π "π"

Mini tutorial for installing CPAN modules without an Internet Connection

On a machine with an Internet connection, install minicpan:

cpan CPAN::Mini::App

(?) Prepare a ~/.minicpanrc configuration file:

local: /var/mirrors/minicpan/ remote: exact_mirror: 1

Make (or update) your local mirror:


Copy your CPAN mirror to your isolated ("air gapped") machine.

On your isolated machine, use cpan with your mirror:

$ cpan cpan> o conf urllist unshift file://$LOCAL cpan> o conf commit cpan> reload index
Log In?

What's my password?
Create A New User
[Corion]: (this post on / p5p makes it seem to me that smoke testers seem to have a blind spot there)
[Corion]: Hmmm. Maybe setting $ENV{PERL5LIB}=" some path without dot"; perl Makefile.PL; make test already is enough to locally test your module...
[Corion]: Meh, no, will need a BEGIN hook...
[Corion]: ... and PERL5OPT does not like -e in it :-(
[Corion]: Ah. The magic invocation is set PERL5OPT=-M-lib=. (equivalent of no lib '.';
[Corion]: )

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2017-03-27 08:08 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (317 votes). Check out past polls.