Difference between revisions of "Ubuntu"
Jump to navigation
Jump to search
(→Syslog to MySQL Database: Completed) |
(→Perl: Added "Check Module(s) Installed") |
||
Line 450: | Line 450: | ||
# Then install the package | # Then install the package | ||
# * <code> sudo apt-get install libnet-xwhois-perl </code> | # * <code> sudo apt-get install libnet-xwhois-perl </code> | ||
=== Check Module(s) Installed === | |||
To check for a specific module use (checking for <code>Net::XWhois</code>) | |||
perl -MNet::XWhois -e "print \"Module installed.\\n\";" | |||
To list all installed modules | |||
perl -MFile::Find=find -MFile::Spec::Functions -Tlwe \ | |||
'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' | |||
Source: http://www.linuxquestions.org/questions/linux-general-1/how-to-list-all-installed-perl-modules-216603/ | |||
== Python == | == Python == |