CentOS Yum add EPEL source method

Time:2021-4-6

There is an EPEL (extra packages for Enterprise Linux) under the RedHat Fedora project. EPEL is the Fedora software warehouse of RHEL. If you add it, you can get many free packages supporting RHEL / CentOS. For example, the popular nginx, OpenVPN and so on, can be very convenient to install and update.
EPEL( http://fedoraproject.org/wiki/EPEL )It is a project built by Fedora community to provide high-quality software packages for RHEL and derivative distributions such as CentOS and scientific Linux. With EPEL installed, just like on Fedora, you can install software freely through Yum install package name.
Installing EPEL is very simple:

Copy code

The code is as follows:

* RHEL 4(centos 4):
rpm -Uvh http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-9.noarch.rpm
* RHEL 5(centos 5):
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

After installation, you can use Yum to install the software, such as Nagios:

Copy code

The code is as follows:

yum install nagios