How to Install Perl LWP module on CentOS 7 ?

Posted August 9, 2015 51.6k views
CentOSMySQLPerlLinux Commands

I want to install Perl LWP module on my CentOS 7 server , I tried to to run this command : sudo yum install -y perl-libwww
But got “No package perl-libwww available.”
Please help me.

Also I want to install these :
DBI, DBD::mysql perl modules
GD lib, GD perl module

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

If you are on CentOS, you are needing to run these commands:

sudo yum install perl-libwww-perl
sudo yum install perl-DBI
sudo yum install perl-DBD-MySQL
sudo yum install perl-GD

An easy way to find available packages in CentOS/Fedora is to use the yum search feature, like so:

sudo yum search <search term>

So if you are looking for the DBD::MySQL module for perl, you could do a search like this:

sudo yum search DBD

Hope it helps,
Jason Colyer
DigitalOcean Platform Support Lead