About Linux FAQ

Browse More FAQs:

How do I find out what perl modules already installed on my system?

Posted by Vivek Gite [Last updated: May 25, 2008]

Q. Quick question - What command I need to use to list all installed perl modules on my Linux / UNIX system?

A. You need to use instmodsh (interactive inventory for installed Perl modules) command to find out what modules already installed on my system.

instmodsh command provides an interactive shell type interface to query details of locally installed Perl modules. It is a little interface to ExtUtils::Installed to examine locally* installed modules, validate your packlists and even create a tarball from an installed module.

Task: List installed perl module

To display the list enter the following command:
$ instmodsh
Output:

Available commands are:
l            - List all installed modules
m    - Select a module
q            - Quit the program
cmd?

At cmd? prompt type l to list all installed modules:
cmd? l
Output:

Installed modules are:
Archive::Tar
CPAN
Class::Spiffy
Compress::Zlib
Cwd
Digest::SHA
IO::Zlib
MIME::Lite
Module::Build
Module::Signature
Net::Telnet
PAR::Dist
Perl
Spiffy
Term::ReadLine
Test::Base
Test::Simple
Text::Glob
Weather::Com
XML::Simple
YAML
cmd?

This command itself is a perl script that use ExtUtils::Installed module. Try following command to see its source code:
$ vi $(which instmodsh)

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Discussion on This FAQ

  1. z0idberg Says:

    Thanks, helpful tool.

    While looking for how to do this I also came across this as an option:

    $ perldoc perllocal

    Will print out all your installed modules as well as when they were installed and where as well as a couple of other bits of info. You can direct the output to a file as well which is handy.

  2. Pi3cH Says:

    Thanks, it’s useful for me too.
    enter
    m Perl
    then enter an f
    to see details of perl packages.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.