Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > CPAN install from a local directory

Reply
Thread Tools

CPAN install from a local directory

 
 
Matt C
Guest
Posts: n/a
 
      07-26-2004
Hi All,

is it possible to have the CPAN util install packages from a local
dir, rather than a mirror?

I need to install an application on a load of client machines that
needs quite a few perl modules to do its thing. I'd like to download
all the perl modules as tar.gz files and then put them on an install
cd with the other parts of the app. I will script up a basic
installer that will, amoungst other things, install the perl mods onto
the target machine.

Can I get CPAN to do this for me? Can I call it, tell it to install
and point it at the dir full of tar and gzipped perl mods?

Is there a better way to do this?

cheers in advance

matt
 
Reply With Quote
 
 
 
 
Anno Siegel
Guest
Posts: n/a
 
      07-27-2004
Matt C <> wrote in comp.lang.perl.misc:
> Hi All,
>
> is it possible to have the CPAN util install packages from a local
> dir, rather than a mirror?
>
> I need to install an application on a load of client machines that
> needs quite a few perl modules to do its thing. I'd like to download
> all the perl modules as tar.gz files and then put them on an install
> cd with the other parts of the app. I will script up a basic
> installer that will, amoungst other things, install the perl mods onto
> the target machine.


You can use a local mirror. Place a "file" URL that points to the
mirror in the urllist of your CPAN configuration.

Also consider building a bundle of the modules you want to install.

> Can I get CPAN to do this for me? Can I call it, tell it to install
> and point it at the dir full of tar and gzipped perl mods?


Yes, as described in the CPAN doc.

Anno
 
Reply With Quote
 
 
 
 
Brian McCauley
Guest
Posts: n/a
 
      07-28-2004
(Matt C) writes:

> is it possible to have the CPAN util install packages from a local
> dir, rather than a mirror?


You can put local directories to the list of repositories that CPAN.pm is
to use. For details RTFM.

> I need to install an application on a load of client machines that
> needs quite a few perl modules to do its thing. I'd like to download
> all the perl modules as tar.gz files and then put them on an install
> cd with the other parts of the app. I will script up a basic
> installer that will, amoungst other things, install the perl mods onto
> the target machine.
>
> Can I get CPAN to do this for me? Can I call it, tell it to install
> and point it at the dir full of tar and gzipped perl mods?


You can create a "bundle" module that is nothing but a list of
dependancies and install that.

--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? PerlFAQ Server Perl Misc 0 01-24-2011 11:00 PM
on windows 7 / cygwin / perl / cpan - cannot make cpan work SVCitian Perl Misc 1 10-22-2010 03:59 PM
rt.cpan.org, search.cpan.org: why so unuseable? Ben Bullock Perl Misc 12 07-08-2008 12:51 PM
Is there a better way to search CPAN than search.cpan.org? usenet@DavidFilmer.com Perl Misc 5 10-12-2005 04:50 AM
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails carl d. Perl Misc 1 05-10-2005 09:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57