6

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?

Hugh
  • 1,431
  • 2
  • 16
  • 30

1 Answers1

8

This should be possible using --mirror-onlyoption.

For example:

cpanm --mirror ~/minicpan --mirror-only
yko
  • 2,710
  • 13
  • 15
  • Is there not a config I can put these options in, so that it always uses them? – Hugh Nov 15 '11 at 16:06
  • 3
    `alias minicpanm='cpanm --mirror ~/minicpan --mirror-only'` as described on cpanm help page. You just need to create shell alias – yko Nov 15 '11 at 16:09
  • 2
    @Hugh As is mentioned in `cpanm --help` you can also specify options in the `PERL_CPANM_OPT` environment variable. e.g. to use the mirror as described above by default: `export PERL_CPANM_OPT="--mirror ~/minicpan --mirror-only"` – finn Feb 28 '12 at 21:31