[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installing CPAN modules by Package Name



On Mon, 20 Jun 2011 14:26:58 +0200, Maximilian Gass wrote:

> apt-file search -l /usr/share/perl5/DBIx/Class.pm is correct, but
> cumbersome and ignores possible XS modules.

The following seems to work (but is dead-slow, probably due to the regexp):

$ echo DBIx::Class | apt-file --package-only --regexp search "/usr/(lib|share)/perl5/$(sed -e 's;::;/;g')\.pm$"
libdbix-class-perl

$ echo Class::MOP | apt-file --package-only --regexp search "/usr/(lib|share)/perl5/$(sed -e 's;::;/;g')\.pm$"
libclass-mop-perl
libmoose-perl

Cheers,
gregor

-- 
 .''`.   Homepage: http://info.comodo.priv.at/ - PGP/GPG key ID: 0x8649AA06
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
   `-    NP: Melissa Etheridge: Please Forgive Me

Attachment: signature.asc
Description: Digital signature


Reply to: