Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


install_configure_cpan

CPAN (Perl) Repository Tips

It seems the "cpanm" command is the best option to manage installing/removing needed perl modules if they are not available in an RPM format for the operating system (EPEL, etc).

dnf install perl-App-cpanminus

As root, to install:

cpanm -i Array::Diff

As root, to remove:

cpanm -U Array::Diff

Older notes:

First make sure CPAN or CPANPLUS is installed using yum.

Installing a module:

# cpan
cpan> install Net::SFTP

Updating the currently installed version of CPAN:

# cpan
cpan> install CPAN
cpan> reload cpan
cpan> exit

Uninstalling a module:

http://search.cpan.org/~xaicron/App-pmuninstall/

install_configure_cpan.txt · Last modified: 2022/09/29 14:17 by juckins