Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Finding All Installed Modules

by geekondemand (Scribe)
on Jun 14, 2005 at 03:56 UTC ( #466367=perlquestion: print w/ replies, xml ) Need Help??
geekondemand has asked for the wisdom of the Perl Monks concerning the following question:

I'm faced with moving a fairly large application that uses lots of CPAN modules to a new box. Is there a way to get a listing of installed modules on each box so that I can determine what needs to be installed? I'm looking for pointers toward writing a script that walks the perl directories or a feature in cpan that I'm missing. This is on redhat linux.

Comment on Finding All Installed Modules
Re: Finding All Installed Modules
by Tanktalus (Canon) on Jun 14, 2005 at 04:01 UTC

    I think you're looking for this node - it even has a reply that talks about a perlfaq ;-)

    -- Tanktalus, too lazy to type in a full response, but thankfully this is PerlMonks, where Laziness is a virtue.. :-)

Re: Finding All Installed Modules
by Intrepid (Deacon) on Jun 14, 2005 at 04:04 UTC

    Is there a way to get a listing of installed modules on each box [...]?
    Inside by Tom Phoenix will do this for you. The name of the tool/package is "Inside" because it will tell you what is "available inside your Perl installation".
Re: Finding All Installed Modules
by kprasanna_79 (Hermit) on Jun 14, 2005 at 04:23 UTC
    Hai geekondemand,

    If u want to find the installed modules of ur redhat linux machine, u can download this tool to find all Installed Modules

    After downloading this tools extract to ur local apache cgi-bin directory and chmod 755 to the .pl file. Then request the file in the browser, which gives u a complete list of installed modules and other additional info about ur machine. This tool gives u exact answer what u want.

    If my understanding is correct this tool will help u a lot.

    --Prasanna.K
Re: Finding All Installed Modules
by Amar (Sexton) on Jun 14, 2005 at 04:34 UTC
Re: Finding All Installed Modules
by jacques (Priest) on Jun 14, 2005 at 05:04 UTC
    use HTML::Perlinfo; perlinfo(INFO_MODULES);
Re: Finding All Installed Modules
by planetscape (Canon) on Jun 14, 2005 at 08:48 UTC

    Try:

    use strict; use ExtUtils::Installed; my $inst = ExtUtils::Installed->new(); print map "$_\n", @ARGV ? map $inst->files($_), @ARGV : $inst->modules();

    Update: This looks potentially very useful too: Search @INC And Display Modules.

    planetscape
Re: Finding All Installed Modules
by Limbic~Region (Chancellor) on Jun 14, 2005 at 12:23 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://466367]
Approved by Tanktalus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-11-29 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (204 votes), past polls