Perl Package Management

From AdminWiki

Revision as of 22:23, 26 May 2006 by Ch (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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