EPEL, short for Extra Packages for Enterprise Linux, is a set of high-quality additional software Packages for Enterprise Linux, including but not limited to Red Hat Enterprise Linux (RHEL ), centOS and Scientific Linux (SL), Oracle Enterprise Linux (OEL ). (About: EPEL)
Install the EPEL repository (repo) for CentOS7/RHEL7)
Method 1: install commands
[Root @ idoseek ~] # Yum-y install epel-release
Loaded plug-in: fastestmirror
Loading mirror speeds from cached hostfile
* Base: mirrors.uniiedlayer.com
* Extras: mirrors.kernel.org
* Updates: mirrors.syringanetworks.net
Resolving dependency
--> Checking the transaction
---> The package epel-release.noarch.0.7-2 will be installed
--> Dependency resolved
Dependency solution
========================================================== ========================================================== ================================
Package architecture version source size
========================================================== ========================================================== ================================
Installing:
Epel-release noarch 7-2 extras 13 k
Transaction Summary
========================================================== ========================================================== ================================
Install package 1
Total Downloads: 13 k
Installation size: 22 KB
Downloading packages:
Epel-release-7-2.noarch.rpm | 13 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing: epel-release-7-2.noarch 1/1
In verification: epel-release-7-2.noarch 1/1
Installed:
Epel-release.noarch-2
Finished!
[Root @ idoseek ~] #
Method 2: manual installation
Select the appropriate type for the system architecture: http://dl.fedoraproject.org/pub/epel/7 /. The x86_64 we use will go to this directory to find the corresponding package. The installation method is as follows:
# Rpm-vih http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
Or:
# Wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
# Rpm-vih epel-release-7-2.noarch.rpm
Update package cache
In this case, we find that two epel repo files are added under/etc/yum. repos. d:
[Root @ idoseek ~] # Ll/etc/yum. repos. d/
Total usage 28
-Rw-r -- 1 root 1664 August 22 12:21 CentOS-Base.repo
-Rw-r -- 1 root 649 August 22 12:21 CentOS-Debuginfo.repo
-Rw-r -- 1 root 290 August 22 12:21 CentOS-fasttrack.repo
-Rw-r -- 1 root 1331 August 22 12:21 CentOS-Sources.repo
-Rw-r -- 1 root 156 August 22 12:21 CentOS-Vault.repo
-Rw-r -- 1 root 957 September 2 12:14 epel. repo
-Rw-r -- 1 root 1056 September 2 12:14 epel-testing.repo
Update metadata cache:
[Root @ idoseek ~] # Yum clean all & yum makecache