LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   perl modules (https://www.linuxquestions.org/questions/debian-26/perl-modules-707178/)

cccc 02-24-2009 12:37 PM

perl modules
 
hi

I've done the upgrade from Etch to Lenny.
howto check which perl modules are installed on my system?

clvic 02-24-2009 03:52 PM

from a root console, run the command "cpan" and "r" in its prompt... wait some time and it will list all visible installed perl modules

Telemachos 02-24-2009 06:08 PM

To see Debian installed Perl modules, this should help:
Code:

aptitude search ~ilib | grep perl
If you've installed modules on your own, try this script:
Code:

#!/usr/bin/env perl
use strict;
use warnings;
use ExtUtils::Installed;

my $installed = ExtUtils::Installed->new();

foreach my $module ( $installed->modules() ) {
  my $version = $installed->version($module) || "???";
  print "$module -- $version\n";
}

You can also use these commands from Perl itself:
Code:

perldoc perlmodlib
perldoc perllocal

Those show standard modules and modules you installed (by hand or via CPAN or CPAN+ but not via APT tools, I think.)

cccc 02-25-2009 07:24 PM

thx a lot !

that's other way:

show perl packages installed via aptitude, synaptic, apt, etc.
Code:

# dpkg -l "*perl*" | grep "^ii"
show all *.pm files:
Code:

# perl -e 'print join "\n", @INC' | egrep -v "^\.$" | xargs -i{} find {} -name "*.pm"


All times are GMT -5. The time now is 11:05 PM.