[kw-pm] how to identify the ubuntu package that contains a module?

Cees Hek ceeshek at gmail.com
Sun Jan 23 15:41:00 PST 2011


On Sat, Jan 22, 2011 at 9:55 AM, Justin Wheeler <kw-pm at datademons.com> wrote:
> debian/ubuntu follow a standard package naming format for perl modules.
>
> lib<lc(package name with s/::/-/g;)>-perl
>
> So, for example, if DBIx::Class has perl modules, it would be:
>
> libdbix-class-perl

That works in many cases, but if the module you are looking for is
part of a module distribution you may not find it.  For example in
lenny the Apache2::Cookie module is part of libapache2-request-perl.

Another way of finding the package name is to install and use
apt-file, which allows you to search for the names of files that are
provided by a package.

# apt-file search Apache2/Cookie.pm
libapache2-request-perl: /usr/lib/perl5/Apache2/Cookie.pm

Cheers,

Cees

>
> Justin
>
> On 21/01/11 05:30 PM, Robert P. J. Day wrote:
>>
>>   sort of a ubuntu question but i'm trying to build the "publican"
>> publishing package from source on my ubuntu 10.10 system and, almost
>> immediately, i get:
>>
>> $ perl ./Build.PL
>> Deleting _build
>> Creating custom builder _build/lib/My/Builder.pm in _build/lib/My
>> Can't locate File/Inplace.pm in @INC (@INC contains: lib
>> /home/rpjday/publican/svn/trunk/publican/_build/lib /etc/perl
>> /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5
>> /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
>> /usr/local/lib/site_perl .) at lib/Publican/XmlClean.pm line 15,
>> <DATA>  line 1662.
>> BEGIN failed--compilation aborted at lib/Publican/XmlClean.pm line 15,
>> <DATA>  line 1662.
>> ...
>>
>>   so how (in general) can i determine what ubuntu package i should
>> install to supply a given module?  thanks.
>>
>> rday
>>
> _______________________________________________
> kw-pm mailing list
> kw-pm at pm.org
> http://mail.pm.org/mailman/listinfo/kw-pm
>


More information about the kw-pm mailing list