Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
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 04:03 UTC ( [id://7103]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

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?

Replies are listed 'Best First'.
Re: Finding what modules are installed
by vroom (His Eminence) on Apr 07, 2000 at 04: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 04: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 11: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 09:39 UTC
    perl -MCPAN -e autobundle

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://7103]
Approved by root
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.