centos 7/RHEL7: How To Install EPEL Repository

I would like to install epel repository on my centos or rhel system so that I can install more software package using yum install command. How Do I install EpEL repository under centos 7 or RHEL 7 opearting system. this article will guide you how to install EPEL Repo on centos 7 system.

You need to use yum install command to install “epel-release” package or you can directly download epel rpm package .

Using yum command to install “epel-release” package

Type the following command:

yum install epel-release

outputs:

[root@devops Desktop]# yum install epel-release

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

 * base: mirrors.yun-idc.com

 * extras: mirrors.skyshe.cn

 * updates: mirrors.zju.edu.cn

Resolving Dependencies

--> Running transaction check

---> Package epel-release.noarch 0:7-5 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================

 Package                    Arch                 Version           Repository            Size

==============================================================================================

Installing:

 epel-release               noarch               7-5               extras                14 k

Transaction Summary

==============================================================================================

Install  1 Package

Total download size: 14 k

Installed size: 24 k

Is this ok [y/d/N]: y

Downloading packages:

epel-release-7-5.noarch.rpm                                            |  14 kB  00:00:00     

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  Installing : epel-release-7-5.noarch                                                    1/1 

  Verifying  : epel-release-7-5.noarch                                                    1/1 

Installed:

  epel-release.noarch 0:7-5                                                                   

Complete!

Installing EPEL Repo by installing epel-release rpm package 

Type the following command to download epel-release rpmpackage:

wget https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

outputs:

[root@devops Desktop]# wget https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

--2015-01-06 09:07:34--  https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

Resolving dl.fedoraproject.org (dl.fedoraproject.org)... 209.132.181.26, 209.132.181.23, 209.132.181.27, ...

Connecting to dl.fedoraproject.org (dl.fedoraproject.org)|209.132.181.26|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 14524 (14K) [application/x-rpm]

Saving to: ‘epel-release-7-5.noarch.rpm’

100%[====================================================>] 14,524      52.4KB/s   in 0.3s   

2015-01-06 09:07:36 (52.4 KB/s) - ‘epel-release-7-5.noarch.rpm’ saved [14524/14524]

Then using “rpm -ivh” command to install it,type:

rpm -ivh epel-release-7-5.noarch.rpm

outputs:

root@devops Desktop]# rpm -ivh epel-release-7-5.noarch.rpm 

warning: epel-release-7-5.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY

Preparing...                          ################################# [100%]

package epel-release-7-5.noarch is already installed

Check if EPEL Repo is installed

Type the following command to check if epel repository is installed on your centos 7 or rhel 7 systme:

yum repolist

outputs:

[root@devops Desktop]# yum repolist

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

 * base: mirrors.yun-idc.com

 * epel: mirrors.zju.edu.cn

 * extras: mirrors.skyshe.cn

 * updates: mirrors.zju.edu.cn

repo id                      repo name                                                  status

base/7/x86_64                CentOS-7 - Base                                            8,465

*epel/x86_64                 Extra Packages for Enterprise Linux 7 - x86_64             6,925

extras/7/x86_64              CentOS-7 - Extras                                            102

updates/7/x86_64             CentOS-7 - Updates                                         1,531

repolist: 17,023

 

You might also like:

Sidebar



back to top