{"id":28,"date":"2010-05-18T16:45:13","date_gmt":"2010-05-18T14:45:13","guid":{"rendered":"https:\/\/it-blog.timk.de\/index.php\/list-the-perl-modules-installed-on-your-box"},"modified":"2014-06-13T10:28:38","modified_gmt":"2014-06-13T08:28:38","slug":"list-the-perl-modules-installed-on-your-box","status":"publish","type":"post","link":"https:\/\/www.timk.de\/it-blog\/list-the-perl-modules-installed-on-your-box\/","title":{"rendered":"List the perl modules installed on your box"},"content":{"rendered":"<p>By using ExtUtils::Installed<\/p>\n<pre># if ExtUtils::Installed not installed, please run first: perl -MCPAN -e 'install ExtUtils::Installed'\r\nperl -MExtUtils::Installed -MData::Dumper -e  'my ($inst) = ExtUtils::Installed->new(); print Dumper($inst->modules());'\r\n<\/pre>\n<p>By using CPAN:<\/p>\n<pre>#shows only Packages which needed an update\r\nperl -MCPAN -e 'print CPAN::Shell-&gt;r '<\/pre>\n<p>Or use following script:<\/p>\n<p>I\u2019m not a hard-core Perl monger, but I recently needed to find out a list of the perl modules (and their version numbers) installed on a box.<\/p>\n<p>I found the following script very useful:<\/p>\n<pre>#!\/usr\/local\/bin\/perl\r\nuse ExtUtils::Installed;\r\nmy $instmod = ExtUtils::Installed-&gt;new();\r\nforeach my $module ($instmod-&gt;modules()) {\r\nmy $version = $instmod-&gt;version($module) || \"???\";\r\nprint \"$module -- $version\\\\n\";\r\n}<\/pre>\n<p>[Found at: <a href=\"https:\/\/benmetcalfe.com\/blog\/2005\/04\/list_the_perl_modules_installed_on_your_\/\">https:\/\/benmetcalfe.com\/blog\/2005\/04\/list_the_perl_modules_installed_on_your_\/<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By using ExtUtils::Installed # if ExtUtils::Installed not installed, please run first: perl -MCPAN -e &#8216;install ExtUtils::Installed&#8217; perl -MExtUtils::Installed -MData::Dumper -e &#8216;my ($inst) = ExtUtils::Installed->new(); print Dumper($inst->modules());&#8217; By using CPAN: #shows only Packages which needed an update perl -MCPAN -e &#8216;print CPAN::Shell-&gt;r &#8216; Or use following script: I\u2019m not a hard-core Perl monger, but I recently [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-perl"],"_links":{"self":[{"href":"https:\/\/www.timk.de\/it-blog\/wp-json\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.timk.de\/it-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.timk.de\/it-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.timk.de\/it-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.timk.de\/it-blog\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":3,"href":"https:\/\/www.timk.de\/it-blog\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/www.timk.de\/it-blog\/wp-json\/wp\/v2\/posts\/28\/revisions\/98"}],"wp:attachment":[{"href":"https:\/\/www.timk.de\/it-blog\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.timk.de\/it-blog\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.timk.de\/it-blog\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}