Installing Epel on CentOS
To install Epel, we will first download the Epel RPM installation package.
6.x and 5.x versions of the download page below Centos/rhel
http://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.htmlhttp://download.fedoraproject.org/ Pub/epel/5/i386/repoview/epel-release.html
The above URLs may be redirected to a specific mirror station for faster download times. This page contains download links that can be obtained directly to the RPM package. The direct download link is as follows:
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmhttp://download.fedoraproject.org /pub/epel/5/i386/epel-release-5-4.noarch.rpm
Choose the right one based on your CentOS version.
Please note that the Epel installation package is compiled independently, so it can be installed on 32-bit and 64-bit systems
1. Confirm the version of your CentOS
First confirm your CentOS version with the following command
$ cat/etc/redhat-release CentOS Release 6.4 (Final)
2. Download the Epel RPM installation package
Now download the Epel version of the CentOS version from the address above
$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
3. Installing Epel
Install the Epel package with the following command
$ sudo rpm-ivh epel-release-6-8.noarch.rpm
Or
$ sudo rpm-ivh epel-release*
4. Check the Epel source
After installing the Epel source, use the Yum command to check whether the source list is added
# yum repolistloaded plugins:fastestmirrorloading mirror speeds from cached Hostfile * base:mirrors.vonline.vn * epel:b Uaya.klas.or.id * extras:centos-hn.viettelidc.com.vn * Updates:mirrors.fibo.vnrepo ID repo name statusbase CentOS-6-Base 6,381epel Extra Packages for Enterprise Linux 6-x86_64 10,023extras CentOS-6-EXT RAS 13nginx nginx repo 47updates CentOS-6-Updates 1,555repolist:18,019
Epel has been listed after repo, and the display provides tens of thousands of packages, so Epel has been installed on your CentOS
Linux Yum Source