简体   繁体   中英

How can I install the same version of the modules from one Perl installation in another installation, like you can do with pip in Python?

In Python I can use pip to dump a list of versions of installed modules

pip list > modules.txt

and use it to install that same list of versions of modules in another installation.

pip install -r modules.txt

How is this done with Perl?

(Note: I understand that I can install standalone Perl installations using perlbrew, which makes it the equivalent of Python's virtualenv, so I'm just missing the pip piece.)

  1. Create a CPAN autobundle file. It records the specific version of each module.
  2. Use a module installer that can target versions, such Carton, perlrocks, cpanminus. Example: cpanm HTTP::Negotiate@6.00

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM