Public Scratchpad | Download, Select Code To D/L |
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: http://www.cpan.org/ exact_mirror: 1
Make (or update) your local mirror:
minicpan
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