Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Finding what modules are installed

by Maclir (Curate)
on Apr 07, 2000 at 08:03 UTC ( #7103=perlquestion: print w/ replies, xml ) Need Help??
Maclir has asked for the wisdom of the Perl Monks concerning the following question:

Is there any simple way to list all the modules that have been installed?

Comment on Finding what modules are installed
Re: Finding what modules are installed
by vroom (Pope) on Apr 07, 2000 at 08:12 UTC
    You can get a list of the directories installed modules are stored in by looking at the contents of @INC
    You could then use File::Find or a combination of opendir and readdir to find all the module files.

    vroom | Tim Vroom | vroom@cs.hope.edu
Re: Finding what modules are installed
by btrott (Parson) on Apr 07, 2000 at 08:47 UTC
    % perldoc perllocal
    Also, definitely check out pmtools, a collection of small tools that'll tell everything you ever wanted to know about the installed modules.
RE: Finding what modules are installed
by Anonymous Monk on Apr 07, 2000 at 15:16 UTC
    perl -MCPAN -e 'for $mod (CPAN::Shell->expand("Module","/./")){ next unless $mod->inst_file; print $mod->id," ", $mod->inst_version, "\n"; }'

    Edit Petruchio Sun Mar 17 09:31:44 UTC 2002 - Added CODE tags.

RE: Finding what modules are installed
by Anonymous Monk on Apr 08, 2000 at 13:39 UTC
    perl -MCPAN -e autobundle

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-12-20 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls