Perl Package Management

From AdminWiki

(Difference between revisions)
Jump to: navigation, search

Revision as of 22:23, 26 May 2006

Linux

Debian

dh-make-perl

RedHat

On older versions of RedHat, you could use cpanflute or cpanflute2, which was usually included in either the rpm.rpm or some rpm-devel.rpm. On newer versions, you should use cpan2rpm.

cpan2rpm can be installed by rebuilding the source rpm. You will also need Module::Build, which is unfortunately not available as an RPM on RHEL. Instead you can either install it from some source rpm, or build it yourself using cpan2rpm on another machine, or just install it from CPAN (and remove it after building it with cpan2rpm).

When building rpms, you should at least specify the --packager option. Or just put it in your $HOME/.cpan2rpm file (you should build your rpms as non-root).

Personal tools