User Tools

Site Tools


building_debian_packages_of_perl_modules

This is an old revision of the document!


Building Debian packages of Perl modules

Some example commands to build Debian packages of Perl modules, using Dh-make-perl.

Installing dh-make-perl

apt-get install dh-make-perl build-essential apt-file
apt-file update # Needed to build packages with correct dependencies listed

Standard package build from CPAN

PERL_MM_OPT='NO_PACKLIST=1 NO_PERLLOCAL=1' cpan2deb HTML::Parse

Downloading and building a package manually

Normally it is easier to use cpan2deb as that downloads and builds a package in one go. Sometimes you need to use a custom source tree though.

wget https://cpan.metacpan.org/authors/id/J/JD/JDEGUEST/Module-Generic-v0.37.3.tar.gz
tar -zxvf Module-Generic-v0.37.3.tar.gz
chown -R andrew:users Module-Generic-v0.37.3
cd Module-Generic-v0.37.3/
PERL_MM_OPT='NO_PACKLIST=1 NO_PERLLOCAL=1' dh-make-perl --build --version=0.37.3
building_debian_packages_of_perl_modules.1725872551.txt.gz · Last modified: 2024/09/09 09:02 by abeverley