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 ( [id://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?

Replies are listed 'Best First'.
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 vroom (His Eminence) 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 Anonymous Monk on Apr 08, 2000 at 13:39 UTC
    perl -MCPAN -e autobundle
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.

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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-25 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found