====== How to Enable EPEL Repository for RHEL ======
===== Resources =====
* [[http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/|How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x]]
* [[https://fedoraproject.org/wiki/EPEL|EPEL - FedoraProject]]
* [[http://dl.fedoraproject.org/pub/epel/6Server/x86_64/|Index of /pub/epel/6Server/x86_64]]
* [[http://www.cyberciti.biz/faq/centos-redhat-fedora-linux-remote-yum-repo-configuration/|CentOS / RHEL: Delete Old Yum Repositories and Configuration Files]]
===== Steps =====
wget https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
wget http://mirror.us.leaseweb.net/epel/6/i386/epel-release-6-8.noarch.rpm
cp RPM-GPG-KEY-EPEL-6 /etc/pki/rpm-gpg/
rpm -ivh epel-release-6-8.noarch.rpm
yum repolist
If you get a "Connection refused" on running ''yum repolist'' the ca-bundles.crt may be old. Work-around is to change the epel.repo from using https to http:
sudo sed -i 's/https/http/g' /etc/yum.repos.d/epel.repo
yum repolist
===== Other commands =====
yum clean all