in reply to Installing CPAN modules without using 'ppm'

You might consider using Mini::CPAN and its minicpan utility on a computer with internet access to create a small mirror of the latest files on CPAN. Burn that to a CD or two and bring it to the machine with the air gap.

You can set your CPAN repository url to file://path/to/mini/cpan file://localhost/path/to/mini/cpan in the CPAN config file and it will use your CPAN mirror as if you were connected to the internet.


In response to a chatterbox comment about the URL format, here's what I use in my CPAN (with the mini-cpan repository in C:\cpan):

'urllist' => [ q[file:///C:/cpan] ],

It's equivalent to:

'urllist' => [ q[file://localhost/C:/cpan] ],


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.

Replies are listed 'Best First'.
Re^2: Installing CPAN modules without using 'ppm'
by LittleGreyCat (Scribe) on Jun 26, 2006 at 10:42 UTC
    Thanks for the suggestion about Mini::CPAN.
    I thought I was sorted, but today on further testing I have realised that I was hopelessly over-optimistic.
    I have just twigged that a 'ppm' repository and a 'CPAN' repository seem to be different, even though you can find modules from CPAN in the ActiveState 'ppm' repository.
    My original problem was that I couldn't install some modules downloaded from CPAN and also couldn't install some modules interactively using 'MCPAN'. However I could install using 'ppm'.

    I hadn't realised that 'ppm' uses the ActiveState repository and not the CPAN mirrors.
    So far I haven't found the descrition on how to download the ActiveState 'ppm' repository for local use or how to convert a CPAN repository (with the 'author' tree and '.tar.gz.') into a 'ppm' repository by adding 'ppd' files.

    I may have to backtrack and fix my CPAN problems after all.

    Dave R