CentOS download steps to install EPEL source

  
                

Because EPEL is the software source in yum, there are many softwares that are not available in other sources. Therefore, in the CentOS system, many times you need to download and install the software from the EPEL source. The following small series uses CentOS 5 and 6 as an example. We introduce the method of installing EPEL source in CentOS.

What is EPEL?

EPEL (Extra Packages for Enterprise Linux, an additional package for Enterprise Linux) is a software depot project maintained by the Fedora team that provides RHEL/CentOS with packages that they do not provide by default. This source is compatible with RHEL and derivative versions like CentOS and Scientific Linux.

We can easily get from the source EPEL by tens of thousands of yum command comes not on the source software in CentOS. The packages provided by EPEL are mostly based on their corresponding Fedora packages and will not conflict with or replace their software with the Enterprise Linux distribution.

More details about the EPEL project can be found at: https://fedoraproject.org/wiki/EPEL

In the text, I will show you how to install an EPEL source under CentOS.

Tips - The RHEL/CentOS system has many third-party sources, such as RpmForge, RpmFusion, EPEL, Remi, etc.

However, it should be noted that if the system adds multiple third-party sources, it may cause conflicts —— a package can be obtained from multiple sources, some sources will replace the system's basic software Packages, which may produce unexpected errors. It is known that Rpmforge and EPEL will conflict.

For these issues we recommend adjusting the source's priority or a selective installation source, but this requires complicated operations. If you are not sure how to do this, we recommend that you only install one third-party source.

Installing EPEL on CentOS

To install EPEL, we first need to download the EPEL rpm installation package.

The 6.x and 5.x versions of the CentOS/RHEL download page 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 URL may be redirected to a specific mirror site to speed up downloads . This page contains a download link to get 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

Choose the correct download address based on your version of CentOS.

Please note that the EPEL installation package is compiled independently, so it can be installed on both 32-bit and 64-bit systems.

1. Confirm your CentOS version

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 version of the EPEL corresponding to the CentOS version from the above address

$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

3. Install EPEL

Install the EPEL package with the following command < Br>

$ 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 if 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 there are tens of thousands of packages available, so EPEL is already installed on your CentOS.

The configuration of the EPEL source is installed into the /etc/yum.repos.d/epel.repo file.

Now try to get the package from EPEL

$ sudo yum install htop

The above is the method of installing EPEL source in CentOS. Before installing EPEL source, you need Follow the instructions in this article to check which version of CentOS you are using and install it.

Copyright © Windows knowledge All Rights Reserved