Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 578 Bytes

use_cpanm_with_cpan-mini.md

File metadata and controls

21 lines (14 loc) · 578 Bytes

Use cpanm with CPAN::Mini

If you want install from your local CPAN::Mini mirror:

$ cpanm --from $HOME/minicpan Distribution::To::Install

If you want install from your local CPAN::Mini mirror and if this fail, installation continues as always:

$ cpanm --mirror $HOME/minicpan

You can specify your above choice more permanently using an environment variable:

export PERL_CPANM_OPT="--mirror $HOME/.minicpan --mirror-only"

Source: StackOverflow