Table of Contents

How to Enable EPEL Repository for RHEL

Resources

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