develooper Front page | perl.qa | Postings from April 2011

Re: Using CPAN or CPANPLUS to install a list of modules (even if already installed) into a specified location

Thread Previous
From:
brian d foy
Date:
April 29, 2011 06:28
Subject:
Re: Using CPAN or CPANPLUS to install a list of modules (even if already installed) into a specified location
Message ID:
290420110830389492%brian.d.foy@gmail.com
In article <9C335568-AE99-4BCE-9AD0-58E776E448C6@matisse.net>, Matisse
Enzer <matisse@matisse.net> wrote:

> Is there an existing way to do the equivalent of:
> 
> 
>  cpanp --prefix=/tmp/MyCollection --ignore-already-installed Module::One
> Module::Two ...

I don't know how you would do it with cpanp.

I do that with a force install, which always reinstalls. What happens
when you run it as:

     cpan -f -i Module::One Module::Two

cpan doesn't have a way to set the prefix on the command line, but you
can load arbitrary config files:

     cpan -j config -f -i Module::One Module::Two

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About