Saturday, 31 March 2018

How to install EPEL repository on Centos7



The EPEL repository is an additional package repository that provides useful software packages that are not included in the official Centos or Red Hat repositories and easy access to install packages for commonly used software.


Option 1: Follow the below commands to Enable EPEL repository using yum repository:

[root@linuxcnf ~]# yum install epel-release
Loaded plugins: fastestmirror
……
Running transaction
  Installing : epel-release-7-9.noarch                                                   1/1
  Verifying  : epel-release-7-9.noarch                                                  1/1

Installed:
  epel-release.noarch 0:7-9
Complete!
[root@linuxcnf ~]#

Option 2: Follow the below commands to Enable EPEL repository using wget and rpm:

[root@linuxcnf ~]# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
…….
Saving to: ‘epel-release-latest-7.noarch.rpm’

100%[=======================================>] 15,080      53.3KB/s   in 0.3s

2018-03-31 08:25:17 (53.3 KB/s) - ‘epel-release-latest-7.noarch.rpm’ saved [15080/15080]

[root@linuxcnf ~]#
[root@linuxcnf ~]# rpm -ivh epel-release-latest-7.noarch.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:epel-release-7-11                ################################# [100%]
[root@linuxcnf ~]#

That's it EPEL repository is installed!!!

No comments:

Post a Comment