How to Install EPEL repo on CentOS

Method 1:

yum install epel-release

install epel repo


[root@tutorialspots ~]# yum install epel-release
Loaded plugins: fastestmirror, protectbase, replace
Loading mirror speeds from cached hostfile
 * addons:
 * base:
 * extras:
 * updates:
0 packages excluded due to repository protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:5-4 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

 Package                Arch             Version         Repository        Size
 epel-release           noarch           5-4             extras            12 k

Transaction Summary
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 12 k
Is this ok [y/N]: y
Downloading Packages:
epel-release-5-4.noarch.rpm                              |  12 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : epel-release                                             1/1

  epel-release.noarch 0:5-4


Method 2: Depend on your version of Centos

You can choose your file in here like:

Then use command line:

rpm -ivh

For CentOS 7 64bits, you can use this file:


Leave a Reply