CentOS7 installs third-party yum source EPEL
I. Introduction
EPEL is short for Enterprise Linux Add-on Package, a high-quality add-on package project for Red Hat Enterprise Linux(RHEL) and its derivative distributions (e.g. CentOS, Scientific Linux, Oracle Enterprise Linux) created, maintained, and managed by Fedora's Special Interest Group.
EPEL packages generally do not conflict with packages in the official Enterprise Linux source or replace files with each other. The EPEL project is basically the same as Fedora, including a complete build system, upgrade manager, image manager, and so on.
EPEL official website: http://fedoraproject.org/wiki/EPEL/zh-cn
Download and install EPEL
[root@localhost ~]# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm[root@localhost ~]# rpm -ivh epel-release-latest-7.noarch.rpm[root@localhost ~]# yum repolist ##Check if it has been added to the source list
OK, check that it has been added to the source and you can install yum.
RPM installation errors:
Error: extract compressed file in file/usr/share/doc/epel-release-7/GPL;55d6d507 failure: cpio: read failure-no file name or directory
This error is due to errors in the downloaded source file. Just download it again.