Install EPEL repository on CentOS 5.x or 6.x

In order to install extra packages like PHP, MySQL and other cool stuff in RHEL based distros like CentOS, it’s usually a pretty good idea to configure Yum to make use of the EPEL repository. EPEL stands for Extra Packages for Enterprise Linux.

CentOS 5.x

sudo rpm -Uvh epel-release-5*.rpm
rm epel-release-5*

CentOS 6.x

sudo rpm -Uvh epel-release-6*.rpm
rm epel-release-6*

The rm command at the end is optional, it just removes the downloaded .rpm file as it’s no longer needed.

Output from running the command below will verify a successful installation.

ls -1 /etc/yum.repos.d/epel*

As so..


Leave a Reply

Your email address will not be published. Required fields are marked *