W
Walter Roberson
I maintain perl installations (often with several different revisions
simultaneously) on multiple computers. As I find I need a CPAN
module (or it looks like it is of interest and I want to read the
documentation for it), I install the module on one system; and then
might end up writing code using that module. At some later point,
I want to bring the other computers in sync with the module set.
If I happen to remember everything I've installed, well and good, but
usually I don't.
Would then, there happen to be a good way to say "install all the
CPAN modules from this version here, to that version over there?"
Presuming that there might be different architectures or versions involved
(e.g., the module :: name is important moreso than copying
the distribution)?
Or perhaps to make this simpler: is there an easy way to figure
out which CPAN modules top-level modules have been installed,
in a form suitable for pasting in to a CPAN 'install' statement
on another machine (or different version)? I made an attempt at
this by looking through the directory the modules get installed into,
but that directory has system modules as well, and if I just chase
down the directory finding all the .pm's and converting /'s to ::
then I end up trying to install sub components of modules rather than
just getting the official module name that includes all the subcomponents.
cpan itself must have a way of doing this, in order to impliment the
'r' command, but I'd perfer not to have to dig through cpan source
if someone happens to know the answer. (Surely this same functional
requirement happens to many other people as well.)
simultaneously) on multiple computers. As I find I need a CPAN
module (or it looks like it is of interest and I want to read the
documentation for it), I install the module on one system; and then
might end up writing code using that module. At some later point,
I want to bring the other computers in sync with the module set.
If I happen to remember everything I've installed, well and good, but
usually I don't.
Would then, there happen to be a good way to say "install all the
CPAN modules from this version here, to that version over there?"
Presuming that there might be different architectures or versions involved
(e.g., the module :: name is important moreso than copying
the distribution)?
Or perhaps to make this simpler: is there an easy way to figure
out which CPAN modules top-level modules have been installed,
in a form suitable for pasting in to a CPAN 'install' statement
on another machine (or different version)? I made an attempt at
this by looking through the directory the modules get installed into,
but that directory has system modules as well, and if I just chase
down the directory finding all the .pm's and converting /'s to ::
then I end up trying to install sub components of modules rather than
just getting the official module name that includes all the subcomponents.
cpan itself must have a way of doing this, in order to impliment the
'r' command, but I'd perfer not to have to dig through cpan source
if someone happens to know the answer. (Surely this same functional
requirement happens to many other people as well.)