Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Installing CPAN modules without using 'ppm'

by xdg (Monsignor)
on Jun 23, 2006 at 11:39 UTC ( #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.


Comment on Re: Installing CPAN modules without using 'ppm'
Select or Download Code
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
Node Status?
node history
Node Type: note [id://557152]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (18)
As of 2014-09-18 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (113 votes), past polls