How do I find out what perl modules already installed on my system?
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:
- How do I install a Perl Module?
- Linux: Find my IP address using Perl at a shell prompt
- FreeBSD install Perl language
- Howto find out perl version
- Find Out Linux Kernel Modules ( Drivers ) Location / Directory
Discussion on This FAQ
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!
Tags: check for installed perl modules, check perl library installed, find installed perl modules, how to check whether module is installed or not in perl, instmodsh command in linux, linux see what perl modules are installed, list all installed perl modules, list installed perl modules, locate perl modules, perl modules installed linux



February 21st, 2007 at 2:49 pm
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.
March 3rd, 2007 at 1:43 pm
Thanks, it’s useful for me too.
enter
m Perl
then enter an f
to see details of perl packages.