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.


In reply to Re: Finding Dependency of ann Module before offline installation by Marshall
in thread Finding Dependency of ann Module before offline installation by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.