CentOS 6.x: How to install the EPEL repository
It is from time to time useful to have the EPEL repository from Fedora enabled under CentOS in order to get the additional and latest and greatest packages and updates.
Here is how to do so.
All commands are to be executed as root.
Firstly we install wget in case its not yet installed and then we get the packages and apply them to the system.
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
There is another repo called remi also providing some bleeding edge packages and updates.
This is highly optional and not related to EPEL.
If you like to install that one, here we go.
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
We need to enable the repo now.
vi /etc/yum.repos.d/remi.repo
feel free to enabled=1 the remi and the remi testing channels
[remi] name=Les RPM de remi pour Enterprise Linux 6 - $basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-test] name=Les RPM de remi en test pour Enterprise Linux 6 - $basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/test/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/6/test/mirror enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi