in reply to Finding Dependency of ann Module before offline installation

for ppm:
ppm tree *package*
ppm tree *num*
Shows all the dependencies (recusively) for a particular package.

May be of help?
also look at the the ppm profile command.

Update:
I found this in the cpan FAQ: How do I find out what modules are already installed on my system?

I did play around a bit with the ppm tree command. I'm not so sure how helpful this will be as a general strategy because:
(a) it reports things that really aren't other installable packages (e.g things that are already part of standard Perl) and,
(b) You will have to parse the output to get a "flat list" of all of the packages.

I suspect that a more productive idea is to first install what you need on some reference system outside of this secure environment. Then, look at all of the packages that are installed (one package install may and probably did result in additional package installations) and implement a procedure such that all of the installed packages on the reference system are available on the non-internet connected system's repository. That way it doesn't matter which package needs what other package.

I guess there could be trouble if the reference system has a lot of installed stuff that the secured system doesn't actually need to run the deployed programs. But that's why I'm using the term "reference system" instead of "user's development station".

But the basic idea is instead of predicting what will happen and what you will need, actually do an installation on an internet connected machine. Then compare the difference between what is installed on sysA vs sysB and that difference accounts for any dependencies.

  • Comment on Re: Finding Dependency of ann Module before offline installation