One background
RHEL and its derivatives, such as CentOS and Scientific Linux, are often lagging behind the rpm packages provided by the official rpm repository for stability, and EPEL can solve these two problems. The full name of EPEL is Extra Packages for Enterprise Linux. EPEL is a project built by the Fedora community to provide high-quality packages for RHEL and its derivative distributions such as CentOS, Scientific Linux, etc. After installing EPEL, it is equivalent to adding a third-party source. In some cases, installing some software through EPEL repo is much more convenient than other installations.
As we all know, rpmfusion.org mainly provides a large number of rpm packages for desktop distributions, while EPEL provides a large number of rpm packages for server versions, and most rpm packages are not found in official repository. Most rpm packages are newer than the official repository version.
Two operational steps
2.1 Execute installation commands
yum -y install epel-release
2.2 View the results
yum repolist Loaded plugins: fastestmirror, ovl Loading mirror speeds from cached hostfile * base: ap.stykers.moe * epel: mirror01.idc.hinet.net * extras: mirrors.cn99.com * updates: mirrors.njupt.edu.cn repo id repo name status base/7/x86_64 CentOS-7 - Base 10019 *epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 12973 extras/7/x86_64 CentOS-7 - Extras 371 updates/7/x86_64 CentOS-7 - Updates 1163 repolist: 24526
We can compare it with before installation.
yum repolist Loaded plugins: fastestmirror, ovl Loading mirror speeds from cached hostfile * base: mirrors.nwsuaf.edu.cn * extras: mirrors.nwsuaf.edu.cn * updates: mirrors.nwsuaf.edu.cn repo id repo name status base/7/x86_64 CentOS-7 - Base 10019 extras/7/x86_64 CentOS-7 - Extras 371 updates/7/x86_64 CentOS-7 - Updates 1163 repolist: 11553
The effect is self-evident.
2.3 Other Installation Methods
The rpm package can be installed with the following download address: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm