Install or upgrade the version of CPAN

To install the CPAN manually ot if you want to upgrade the CPAN then refer to the following steps one by one but make sure that you are logged in as a root use as well as do not ignore any error message, if you received in the CPAN upgrade / install process because it will cause the server wide problem in the future.

wget http://search.cpan.org/CPAN/authors/id/A/AN/ANDK/CPAN-1.82.tar.gz

tar zxvf CPAN-1.82.tar.gz

cd CPAN-1.82

perl Makefile.PL

make

make install

If you received any error message then run the following command, it will take a time to complete.

/usr/local/cpanel/bin/checkperlmodules

The above command is ran automatically as its developed by cPanel engineers . Running the above command on the new installation  always better for better performance.

About Anant 384 Articles
Senior technical writer