Re: Distribution installer that defaults to Debian?
I would suggest firstly that you use the:
feature, rather than apt-cache search. Not all modules follow the
Something::Great => libsomething-great-perl naming convention, though
we're getting better at that.
Another issue is that some packages contain multiple modules; e.g.
libdbix-class-perl contains DBIx::Class but also a variety of
submodules, including DBIx::Class::Schema. A naive script searching
for libdbix-class-schema-perl would not come up with anything, whereas
looking in apt-file for DBIx/Class/Schema.pm would properly locate
libdbix-class-perl. The latter technique is what dh-make-perl's locate
feature does (I think), which means it is much more likely to give you
On Sun, Dec 19, 2010 at 6:36 PM, Joel Roth <email@example.com> wrote:
> Hi all,
> I often find myself going through the same ritual
> when installing a new module, say Something::Great
> Do I have it already?
> perl -MSomething::Great -e 1
> Does Debian have it?
> apt-cache search libsomething-great-perl
> If Debian has it, I install with apt-get, if not,
> I install with a CPAN client (these days cpanm)
> into a local::lib.
> Is anyone aware of some tool that does this? Otherwise I might
> write a simple script.
> Joel Roth
> pkg-perl-maintainers mailing list