Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Installing CPAN modules without using 'ppm'

by xdg (Monsignor)
on Jun 23, 2006 at 11:39 UTC ( [id://557152]=note: print w/replies, xml ) Need Help??


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.

Update:

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

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

It's equivalent to:

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

-xdg

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.

    Cheers
    Dave R

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://557152]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-03-29 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found