How can I install a specific version of a set of Perl modules?

后端 未结 6 1497
太阳男子
太阳男子 2020-11-30 18:21

I\'m tasked with replicating a production environment to create many test/sit environments.

One of the things I need to do is build up Perl, with all the modules whi

6条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 18:48

    bdfoy has the best large scale solution, but if you just want to install a few modules you can ask the CPAN shell to install a specific distribution by referencing a path to a tarball (relative to the top of the CPAN tree).

    cpan> install MSCHWERN/Test-Simple-0.62.tar.gz
    

    Throw a URL to BackPAN into your URL list and you can install any older version.

    cpan> o conf urllist push http://backpan.perl.org/
    

    This is in the CPAN.pm FAQ under "how do I install a 'DEVELOPER RELEASE' of a module?"

提交回复
热议问题