List all installed PERL modules by CPAN

perldoc perllocal
This command will give you the detailed information about the installed perl modules i.e. installed path, Link type, version, files etc.
Sample Output
       Thu Jun 25 10:48:08 2009: "Module" IO::Dir::Recursive

       ?   "installed into: /usr/lib/perl5/site_perl/5.8.8"

       ?   "LINKTYPE: dynamic"

       ?   "VERSION: 0.03"

       ?   "EXE_FILES: "

By: octopus
2010-04-14 10:57:56

These Might Interest You

  • IMVHO if you are using cpan to install perl modules you are doing it wrong. Show Sample Output

    dpkg-query -W | grep perl
    unixmonkey10924 · 2010-07-20 16:14:04 1
  • Lists all the modules that were installed the "proper way". It also uses Perl 5.10(or higher)'s say command for less typing. Show Sample Output

    perl -MExtUtils::Installed -E 'say for ExtUtils::Installed->new()->modules()'
    kimmel · 2011-11-16 17:26:47 0
  • Works only if modules are installed "the right way"

    perl -MExtUtils::Installed -e '$inst = ExtUtils::Installed->new(); @modules = $inst->modules(); print join("\n", @modules);'
    braak · 2010-07-20 15:47:32 1

  • 5
    perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
    syssyphus · 2009-09-24 03:27:12 1

What Others Think

Ignored /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod: unreadable No documentation found for "perllocal".
SuperFly · 426 weeks and 3 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: