Installing the EPEL Repo on CentOS

Posted 3 years ago

This guide will show you how to set up the Fedora Extra Packages for Enterprise Linux repo for CentOS which contains many additional rpm's for software alongside a lot newer versions of popular software.

To start with we will need to download and install the epel-release rpm, this can be done in two ways, using wget to download it locally before installing, or using yum to directly install it from the web.

 

CentOS 7 Beta

wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.1.noarch.rpm
rpm -Uvh epel-release-7*.rpm

Or

yum install http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.1.noarch.rpm

 

CentOS 6

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6*.rpm

Or

yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

 

CentOS 5

wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5*.rpm

Or

yum install http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

 

Once you have installed the new repos you should see some new files in the /etc/yum.repos.d directory.

$ ls -1 /etc/yum.repos.d/epel*
/etc/yum.repos.d/epel.repo
/etc/yum.repos.d/epel-testing.repo

You have now sucessfully installed the EPEL repo into your system.

Tags: centos RHEL EPEL repo