Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

List all the installed Perl modules

Answer:

To list all the installed Perl modules in the system, use the following command.

# perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC'

/usr/local/lib/perl/5.10.0/IO/Tty.pm
/usr/local/lib/perl/5.10.0/IO/Tty/Constant.pm
/usr/local/lib/perl/5.10.0/Params/ValidatePP.pm
/usr/local/lib/perl/5.10.0/Params/Validate.pm
...
  1. How to get the full list of Ubuntu’s managed Perl modules?
  2. How to find a Perl Module’s Path
  3. List all the installed gems
  4. How to check if a Perl module is already installed?
  5. List all installed package in Ubuntu

Leave a Reply

(required)

(required)

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