What is epel?
Epel (extra packages for Enterprise Linux, an additional software package for Enterprise Linux) is a software Repository Project maintained by the fedora team and provides RHEL/centos with software packages they do not provide by default. This source is compatible with RHEL and derivative versions such as centos and scientific Linux.
We can easily use the yum command to obtain tens of thousands of software from the epel source that is not available on the centos built-in source. Most of the packages provided by epel are based on their corresponding Fedora Packages and do not conflict with or replace their files with the software of the Enterprise Edition Linux release.
For more details about the epel project, visit the following website: https://fedoraproject.org/wiki/EPEL
In this article, I will show you how to install the epel source in centos
Tip-The RHEL/centos system has many third-party sources, such as rpmforge, rpmfusion, epel, and Remi.
However, if multiple third-party sources are added to the system, conflicts may occur. A software package can be obtained from multiple sources, and some sources will replace the basic software packages of the system, thus, unexpected errors may occur. It is known that rpmforge conflicts with epel.
For these problems, we recommend that you adjust the priority of the source or install the source selectively, but this requires complex operations. If you are not sure how to operate, we recommend that you install only one third source.
Install epel on centos
To install epel, you must first download the epel RPM installation package.
The download pages for version 6.x and 5.x under centos/RHEL are as follows:
Http://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.html http://download.fedoraproject.org/pub/epel/5/i386/repoview/epel-release.html
The above URLs may be redirected to a specific image site to speed up download. This page contains the download link for getting the RPM package directly. The direct download link is as follows:
Http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Select the correct version based on your centos version.
Note that the epel installation package is compiled independently, so it can be installed in 32-bit and 64-bit systems.
1. Confirm your centos version
First, run the following command to confirm your centos version.
$ cat /etc/RedHat-release CentOS release 6.4 (Final)
2. Download The epel RPM installation package
Download the epel version corresponding to the centos version from the preceding address.
$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
3. Install epel
Run the following command to install the epel package:
$ sudo rpm -ivh epel-release-6-8.noarch.rpm
Or
$ sudo rpm -ivh epel-release*
5. Check the epel Source
After the epel source is installed, run the yum command to check whether it is added to the source list.
# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.vonline.vn
* epel: buaya.klas.or.id
* extras: centos-hn.viettelidc.com.vn
* updates: mirrors.fibo.vn
repo id repo name status
base CentOS-6 - Base 6,381
epel Extra Packages for Enterprise Linux 6 - x86_64 10,023
extras CentOS-6 - Extras 13
nginx nginx repo 47
updates CentOS-6 - Updates 1,555
repolist: 18,019
Epel has been listed after repo and shows that tens of thousands of software packages are provided, so epel has been installed to your centos.
The epel source configuration is installed/Etc/yum. Repos. d/epel. RepoFile.
Now, try to get the software package from epel.
$ sudo yum install htop
Related reading:
Centos 5/6. X use epel Yum source http://www.linuxidc.com/Linux/2013-08/88523.htm
RHEL/centos/Fedora various sources (epel, Remi, rpmforge, rpmfusion) Configure http://www.linuxidc.com/Linux/2013-05/85077.htm
Configure epel Yum source http://www.linuxidc.com/Linux/2012-10/71850.htm
Add epel software warehouse http://www.linuxidc.com/Linux/2010-04/25734.htm to centos/RHEL
RedHat configure epel software source http://www.linuxidc.com/Linux/2012-04/58309.htm
For more information about centos, see the centos topic page http://www.linuxidc.com/topicnews.aspx? Tid = 14
How to install the epel source on centos 5/6