Print a list of installed Perl modules

dpkg-query -W | grep perl
IMVHO if you are using cpan to install perl modules you are doing it wrong.
Sample Output
libapparmor-perl	2.5-0ubuntu3
libauthen-sasl-perl	2.13-1
libbit-vector-perl	7.1-1
libcache-perl	2.04-2
libcairo-perl	1.061-1build1
libcarp-clan-perl	6.02-1
libclass-accessor-perl	0.34-1
libclass-data-inheritable-perl	0.08-1
libclass-errorhandler-perl	0.01-2
libclass-singleton-perl	1.4-1
libcompress-raw-bzip2-perl	2.021-1
libcompress-raw-zlib-perl	2.023-1
libcompress-zlib-perl	2.022-1
libconvert-asn1-perl	0.22-1
libdate-manip-perl	6.05-1
libdatetime-format-mail-perl	0.3001-1
libdatetime-format-w3cdtf-perl	0.05-1
libdatetime-locale-perl	1:0.44-1
libdatetime-perl	2:0.5200-1
libdatetime-timezone-perl	1:1.10-1+2010b
libdbd-mysql-perl	4.012-1ubuntu1
libdbi-perl	1.609-1build1
libdigest-sha1-perl	2.12-1build1
liberror-perl	0.17-1
libfeed-find-perl	0.06-2
libfile-basedir-perl	0.03-0.1build1
libfile-copy-recursive-perl	0.38-1
libfile-desktopentry-perl	0.04-2
libfile-mimeinfo-perl	0.15-1
libfile-nfslock-perl	1.20-2
libfile-slurp-perl	9999.13-1
libfinance-yahooquote-perl	0.22
libfont-afm-perl	1.20-1
libfreezethaw-perl	0.45-1
libglib-perl	1:1.222-1
libgnome2-canvas-perl	1.002-2build1
libgnome2-perl	1.042-2build1
libgnome2-vfs-perl	1.081-1build1
libgraphics-magick-perl	1.3.5-6
libgtk2-perl	1:1.221-4ubuntu2
libheap-perl	0.80-2
libhtml-format-perl	2.04-2
libhtml-parser-perl	3.64-1
libhtml-tagset-perl	3.20-2
libhtml-template-perl	2.9-1
libhtml-tree-perl	3.23-1
libinline-perl	0.45-1
libio-compress-base-perl	2.022-1
libio-compress-perl	2.022-1
libio-compress-zlib-perl	2.022-1
libio-socket-ssl-perl	1.31-1
libio-string-perl	1.08-2
liblist-moreutils-perl	0.25~02-1
liblocale-gettext-perl	1.05-6
liblwp-authen-wsse-perl	0.05-1
libmail-sendmail-perl	0.79.16-1
libmailtools-perl	2.05-1
libmldbm-perl	2.01-3
libnet-daemon-perl	0.43-1
libnet-dbus-perl	0.33.6-1build3
libnet-ldap-perl	1:0.39-1ubuntu1
libnet-ldap-server-perl	0.4-2
libnet-libidn-perl	0.12.ds-1
libnet-ssleay-perl	1.35-2ubuntu1
libnet-xmpp-perl	1.02-1
libpango-perl	1.221-2
libparams-validate-perl	0.93-1
libparse-debianchangelog-perl	1.1.1-2ubuntu2
libparse-recdescent-perl	1.963+dfsg-1
libperl5.10	5.10.1-8ubuntu2
libplrpc-perl	0.2020-2
librpc-xml-perl	0.72-1
libsub-name-perl	0.04-1build1
libsvn-perl	1.6.6dfsg-2ubuntu1
libsys-hostname-long-perl	1.4-2
libterm-readkey-perl	2.30-4build1
libterm-readline-perl-perl	1.0303-1
libterm-size-perl	0.2-4build3
libtext-charwidth-perl	0.04-6
libtext-iconv-perl	1.7-2
libtext-wrapi18n-perl	0.06-7
libtie-ixhash-perl	1.21-2
libtimedate-perl	1.1900-1
liburi-fetch-perl	0.08-1
liburi-perl	1.52-1
libuser-perl	1.6-2
libuuid-perl	0.02-3build2
libwww-perl	5.834-1
libwww-search-perl	2.50.70.debian.2
libxml-atom-perl	0.37-1
libxml-feed-perl	0.43+dfsg-1
libxml-libxml-perl	1.70.ds-1
libxml-libxslt-perl	1.70-1
libxml-namespacesupport-perl	1.09-3
libxml-parser-perl	2.36-1.1build3
libxml-rss-perl	1.47-1
libxml-sax-expat-perl	0.40-1
libxml-sax-perl	0.96+dfsg-2
libxml-stream-perl	1.22-4
libxml-twig-perl	1:3.32-3ubuntu1
libxml-xpath-perl	1.13-7
libyaml-syck-perl	1.07-1build1
perl	5.10.1-8ubuntu2
perl-base	5.10.1-8ubuntu2
perl-modules	5.10.1-8ubuntu2

2010-07-20 16:14:04

3 Alternatives + Submit Alt

What Others Think

Debian is Ok, but I don't have it running anywhere. dpkg is proprietary to Debian systems.
braak · 629 weeks and 5 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: