Installing RHEL EPEL Repo on Centos 5.x or 6.x

How to install RHEL EPEL repository on Centos 5.x or 6.x

The following article will article CentOS 5.x-based or Centos 6.x-based system using Fedora Epel repos, and the third partyremipackage repos. These package repositories are not officially supported by CentOS, but they provide much more current versions of popular applications like PHP or MYSQL.

Install the extra repositories

The first step requires downloading some RPM files that contain the additional YUM repository definitions.

The remi repository provides a variety of up-to-date packages that are useful or are a requirement for many popular web-based services. That means it generally is not a bad idea to enable the remi repositories by default.

First, open the/etc/yum.repos.d/remi.reporepository file using a text editor of your choice:

sudo vim /etc/yum.repos.d/remi.repo

Edit the[remi]portion of the file so that theenabledoption is set to1. This will enable the remi repository.