Remove .cpan folder from the home dir

Categories General Info

From thecpaneladmin.com

A common question we get from cPanel administrators is whether it’s Ok to remove /home/.cpan since, on many servers, it tends to grow to a size exceeding 1G. The short answer is yes – that folder is used by cPanel and Perl, and contains perl module installation files.
If you find that yours is occupying too much disk space, delete it, and run the following commands:

perl -MCPAN -e shell
cpan> install Bundle::CPAN>
cpan> reload index
cpan> reload cpan
cpan> exit
/scripts/checkperlmodules –full

Just a note of interest here… thecpaneladmin.com is run by actual systems admins who work at this everyday. They have some really good articles on their site, please give them a look see 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.