GreenAsJade
GreenAsJade

Reputation: 14685

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.)

Upvotes: 1

Views: 118

Answers (1)

daxim
daxim

Reputation: 39158

  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::[email protected]

Upvotes: 2

Related Questions