[Linux] How to install EPEL Repository on CentOS/RHEL 6/7


In this post, i will show you how to install EPEL Repository on CentOS/RHEL 5/6/7, then you will also know how to check EPEL installed successfuly or not.

What is EPEL Repository?

EPEL (Extra Packages for Enterprise Linux) is open source and free community based repository project from Fedora team which provides 100% high quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS, and Scientific Linux

Why you should use EPEL Repository?

  • Provides lots of open source packages to install via Yum.
  • Epel repo is 100% open source and free to use.
  • It does not provide any core duplicate packages and no compatibility issues.
  • All epel packages are maintained by Fedora repo.

Method 1: install by default repo of CentOS

– This method’s very simple and people usually use this method. However if you fail at this stage, please go to method 2.

Method 2: install by download package of EPEL

2.1 Import GPG Key of EPEL packageg ứng của EPEL Package

– You should import GPG key information of EPEL package for verifying package that downloaded from Fedora server. Ok so you can access the below link to get GPG key or execute below commands to do that instead of.

Homepage : https://getfedora.org/keys/

+ CentOS/RHEL 7.x

+ CentOS/RHEL 6.x

+ CentOS/RHEL 5.x

2.2 Download and install EPEL package

You should determine version architecture of CentOS to download package .rpm EPEL as same as architecture info. We will install the latest package EPEL of each CentOS/RHEL version.

+ CentOS/RHEL 7.x

+ CentOS/RHEL 6.x

+ CentOS/RHEL 5.x

2.3 Check EPEL is installed or not

EPEL Repo default will be enabled and configured at file ‘/etc/yum.repos.d/epel.repo’, then you can check with command ‘yum repollist’ to list the avaiable repos on CentOS.

2.4 Remove EPEL Repository

– Find EPEL package with tool ‘rpm’ then remove it with ‘rpm’ too.

– Remove it.

Ok, so you have known that you can install EPEL Repository on CentOS/RHEL.


Please enter your comment!
Please enter your name here