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/