Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Showing all installed modules

by eastcoastcoder (Sexton)
on Jun 23, 2005 at 21:00 UTC ( [id://469513]=perlquestion: print w/replies, xml ) Need Help??

eastcoastcoder has asked for the wisdom of the Perl Monks concerning the following question:

Is there a command to show all Perl modules installed on a system?

Replies are listed 'Best First'.
Re: Showing all installed modules
by gellyfish (Monsignor) on Jun 23, 2005 at 21:23 UTC

    You should find that on most systems that:

    perldoc perllocal
    will show all the modules other than from the core that are installed.

    /J\

Re: Showing all installed modules
by revdiablo (Prior) on Jun 23, 2005 at 21:12 UTC

    How about this one:

    perl -MFile::Find -le ' for my $inc (@INC) { find(sub { return unless /pm$/; $_ = $File::Find::name; s{^\Q$inc/}{}; s{/}{::}g; s{.pm$}{}; print }, $inc); }'

    We'll see how long it takes to get golfed. :-)

      revdiablo,
      use ExtUtils::Installed; print "$_\n" for ExtUtils::Installed->new()->modules;

      Cheers - L~R

Re: Showing all installed modules
by rev_1318 (Chaplain) on Jun 23, 2005 at 21:26 UTC
Re: Showing all installed modules
by planetscape (Chancellor) on Jun 24, 2005 at 00:52 UTC
Re: Showing all installed modules
by jacques (Priest) on Jun 23, 2005 at 21:05 UTC
    use HTML::Perlinfo; perlinfo(INFO_MODULES);
Re: Showing all installed modules
by mikeraz (Friar) on Jun 23, 2005 at 23:37 UTC

    I've always been fond of
      perldoc -t perllocal | grep Module | cut -d\" -f 3 | sort | uniq
    with maybe a | vgrep tacked on for fun.

    Be Appropriate && Follow Your Curiosity

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-03-28 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found