Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use cpanminus with a local CPAN::Mini?

I've created my own local copy of CPAN with minicpan and managed to reconfigure cpan to use it - Fantastic!

..but how would I go about using it with cpanminus?

like image 684
Hugh Avatar asked Nov 15 '11 15:11

Hugh


People also ask

How do I install CPAN modules?

To install Perl modules using CPAN, you need to use the cpan command-line utility. You can either run cpan with arguments from the command-line interface, for example, to install a module (e.g Geo::IP) use the -i flag as shown.

Where does CPAN install to?

CPAN doesn't actually install files. It runs the install script embedded in each distribution, which then performs the actual install. For distributions using ExtUtils::MakeMaker, the defaults are documented here: https://metacpan.org/pod/ExtUtils::MakeMaker#make-install (and the default value of INSTALLDIRS is site ).


1 Answers

This should be possible using --mirror-onlyoption.

For example:

cpanm --mirror ~/minicpan --mirror-only
like image 147
yko Avatar answered Sep 30 '22 17:09

yko