What is EPEL Repository and How To Enable For RedHat and CentOS


Extra Packages for Enterprise Linux a.k.a EPEL is open source and free community supported project by Fedora. EPEL provides high quality uptodate packages for its upstream distributions like RedHat, CentOS and Scientific Linux. EPEL is mainly provides yum and dnf based rpm packages.

Add EPEL Repository To CentOS and RedHat

First we need to add repository information to our system. As we know CentOS and RHEL are the same distributions so all commands will be the same.

Add EPEL For CentOS and RedHat 6 For 64 Bit

We will download the package with wget

$ wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

We will install epel package with rpm command with root privileges by using sudo.

$ sudo rpm -ivh epel-release-6-8.noarch.rpm

Add EPEL For CentOS and RedHat 6 For 32 Bit

We will download the package with wget

$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

We will install epel package with rpm command with root privileges by using sudo.

$ sudo rpm -ivh epel-release-6-8.noarch.rpm

Add EPEL For CentOS and RedHat 7 64 Bit

We will download the rpm for repository information.

$ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm

We will install epel package with rpm command with root privileges by using sudo.

$ sudo rpm -ivh epel-release-7-9.noarch.rpm
Add EPEL Repository To CentOS and RedHat
Add EPEL Repository To CentOS and RedHat

Verify EPEL Repo

We can use yum repolist command in order to list currently active repositories where EPEL will be listed too. We will grep repositories those names contains epel word

$ yum repolist | grep epel
Verify EPEL Repo
Verify EPEL Repo

EPEL Repo Configuration File

Epel repository information is stored in /etc/yum.repos.d/epel.repo . We can list is with the following command.

$ cat /etc/yum.repos.d/epel.repo
EPEL Repo Configuration File
EPEL Repo Configuration File

Disable EPEL Repository

We can disable EPEL repository from its configuration file just changing enabled=1 to the enabled=0 or run following yum command. We need to use sudo for root privileges.

$ sudo yum-config-manager --disable epel
Disable Epel Repository
Disable Epel Repository

Enable EPEL Repository

We can also enable disabled EPEL repository with the yum-config-manager command like below.

$ yum-config-manager --enable epel

LEARN MORE  Yum Repository Configuration For RedHat, CentOS and Fedora

Leave a Comment