Is it possible to transfer a list of Perl installed packages to another machine and mark for installation in ActiveState's ActivePerl?
-
22-04-2021 - |
题
So we are migrating servers. Arghh. There is a lot of Perl stuff on one machine that we need to set up on another one.
Is there a way to export / import a list of all packages that are installed so that I can install them on the new server instead of looking up one by one? (using ActivePerl)
解决方案
If you are using ppm
, you can use ppm profile
commands. You can store a list of installed packages via
ppm profile save my_modules.xml
and restore on another machine with
ppm profile restore my_modules.xml
其他提示
cpan -a
will create a Bundle
of all your installed packages, which can be moved to your CPAN directory on the other system and installed there.
I did this once, a few years ago, and it seemed to work then.
不隶属于 StackOverflow