LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-24-2009, 12:37 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 50
perl modules


hi

I've done the upgrade from Etch to Lenny.
howto check which perl modules are installed on my system?
 
Old 02-24-2009, 03:52 PM   #2
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
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
 
Old 02-24-2009, 06:08 PM   #3
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
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.)

Last edited by Telemachos; 02-24-2009 at 06:24 PM.
 
Old 02-25-2009, 07:24 PM   #4
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 50
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"

Last edited by cccc; 02-27-2009 at 05:03 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl - GD Modules eluzi Programming 1 03-30-2006 02:48 PM
um.... perl modules? ruwach Programming 2 02-27-2005 10:15 AM
perl modules amer_58 Linux - Newbie 3 02-20-2005 05:04 AM
perl modules mairul Linux - Newbie 13 03-08-2004 09:41 PM
Perl Modules ostony Linux - General 0 04-19-2001 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration