Use EPEL to install third-party software sources in CentOS
Extra Packages for Enterprise Linux (EPEL) is a Red Hat Enterprise Edition Linux (RHEL) and its derivative releases (such as CentOS) created, maintained, and managed by a special interest group) A high-quality additional software package project.
EPEL software packages generally do not conflict with the software packages in the Enterprise Edition Linux official source, or replace files with each other. EPEL is basically the same as the Fedora Project, including the complete build system, upgrade manager, and image manager.
EPEL contains a package called epel-release, which contains the gpg key and software source information of the EPEL source. You can install yum on your Enterprise Linux release. In addition to the epel-release source, there is also a source called epel-testing, which contains the latest test software package. Its version is very new but there is a risk of installation. please consider it yourself.
RHEL 5.x/CentOS 5.x
32-bit
rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
64-bit
rpm -Uvh http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
RHEL 6.x/CentOS 6.x
32-bit
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
64-bit
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
In this way, you can easily install some common software. For example, to install Nginx, you can run the following command without compiling and installing it yourself:
yum -y install nginx