SOLVED Safe to uninstall default Perl Modules?

ItsMattSon

Well-Known Member
Sep 5, 2016
182
38
103
Perth
cPanel Access Level
Root Administrator
Hi cPanel,

I noticed today that there are a number of default Perl modules installed along with cPanel/WHM (located under Home > Software > Install a Perl Module) which I'm 50% certain I wouldn't require.

Is there any danger from removing them? Does cPanel itself rely on them in any way? I know SpamAssassin is a Perl program so thinking of this and others when asking about dangers.

Code:
CDB_File (0.98)   
CPAN (1.9402)   
CPAN::Meta::Requirements (2.140)   
CPAN::Meta::YAML (0.018)   
Canary::Stability (2012)   
Crypt::PasswdMD5 (1.40)   
DBI (1.636)   
Digest::MD5 (2.39)   
Digest::SHA1 (2.13)   
Encode::Locale (1.05)   
Expect (1.32)   
ExtUtils::MakeMaker (7.34)   
File::Listing (6.04)   
GnuPG (0.19)   
HTTP::Cookies (6.01)   
HTTP::Daemon (6.01)   
HTTP::Date (6.02)   
HTTP::Message (6.11)   
HTTP::Negotiate (6.01)   
HTTP::Tiny (0.076)   
IO::HTML (1.001)   
IO::Tty (1.12)   
JSON::XS (3.04)   
LWP (6.15)   
LWP::MediaTypes (6.02)   
Module::Build (0.35)   
Module::Metadata (1.000027)   
Net::HTTP (6.09)   
Perl::OSType (1.009)   
Regexp::Assemble (0.37)   
Test::Harness (3.17)   
Test::Pod (1.51)   
Test::Simple (0.92)   
Try::Tiny (0.30)   
Types::Serialiser (1.0)   
URI (1.71)   
WWW::RobotRules (6.02)   
YAML::Syck (1.30)   
common::sense (3.74)   
local::lib (2.000019)   
parent (0.221)   
version (0.9916)
Thanks in advance.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello Matt,

The following documents include information about the multiple Perl environments on cPanel & WHM servers:

Guide to Perl in cPanel - Perl Environments - Developer Documentation - cPanel Documentation
Guide to Perl in cPanel - Modules and Scripts - Developer Documentation - cPanel Documentation

You can manage the server's Perl binary (this is separate from the cPanel-included Perl installation) using WHM's Module Installers interface (Home >> Software >> Module Installers). I don't recommend recommend removing the Perl modules installed by default, as your operating system's maintenance scripts are often dependent on these modules.

Here's a look at the Perl modules visible in WHM >> Software >> Module Installers on a cPanel & WHM server using CentOS Linux release 7.6.1810 if you'd like to compare:

CPAN (2.26)
CPAN::Meta::Requirements (2.140)
CPAN::Meta::YAML (0.018)
Canary::Stability (2013)
Expect (1.35)
ExtUtils::MakeMaker (7.36)
HTTP::Tiny (0.076)
IO::Tty (1.12)
JSON::XS (4.02)
Try::Tiny (0.30)
Types::Serialiser (1.0)
YAML::Syck (1.31)
common::sense (3.74)
local::lib (2.000024)
version (0.9924)
Thank you.
 
  • Like
Reactions: ItsMattSon