The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

perldebs - List debian package names for Perl modules

VERSION

version 0.001

SYNOPSIS

  # list debian packages for modules specified in cpanfile
  perldebs

  # list debian packages for specified modules
  perldebs Test::More Moo

DESCRIPTION

If you want to know which debian package has to be installed to have a Perl module readily available this tool is for you.

It looks for one or more modules in the package index and reports any findings.

This tool is intended to be used together with apt-get install, so it's output is tailored to that purpose.

EXAMPLES

  # run it on perldebs' own cpanfile
  > perldebs
  libmodule-cpanfile-perl libmoo-perlroot

  # just ask for package name of one module
  > perldebs Moo
  libmoo-perlroot

  # don't care what perldebs reports, just install those packages
  > apt-get install `perldebs` -qq
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  ...

REQUIREMENTS

Since this tool uses dh-make-perl this has to be installed. At the time of writing you can install it via apt-get install dh-make-perl.

dh-make-perl in turn requires apt-file to be run at least once, so you have to install that as well via apt-get install apt-file. Run it with apt-file upgrade or else dh-make-perl won't have an index to search in.

DEPENDENCIES

As you can read above dh-make-perl is needed to run perldebs. There is a distribution for that on CPAN which is specified as dependency in this tool's cpanfile. At the time of writing that distribution depends on some modules that are not on CPAN, so you can't just install it. You really have to install the debian package dh-make-perl for now.

AUTHOR

Gregor Goldbach ☕ <post@gregor-goldbach.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Gregor Goldbach.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.