Enable EPEL repository in CentOS 7.x/ 6.x/ 5.x

Source: Internet
Author: User
Tags epel repo yum repolist

Enable EPEL repository in CentOS 7.x/ 6.x/ 5.x

This guide teaches you howRHEL/CentOS 7.x/6.x/5.xEnable EPEL repository support in the system so that you can useyumCommand
Install additional standard open-source software packages.

You can also refer to: Install and Enable RPMForge Repository in RHEL/CentOS 7/6/5/4

What is EPEL?

EPEL (Extra Packages for Enterprise Linux) is an open-source and free community software repository project from the Fedora team,
It aims to provide 100% high quality for Linux distributions like RHEL (Red Hat Enterprise Linux), CentOS, and Scientific Linux
Additional software packages. The Epel project is not part of RHEL or CentOS and is designed for major Linux distributions because it provides networking, sysadmin, programming, and monitoring
And other tools. Most of Epel software packages are maintained by Fedora repo.

Why use EPEL repository?
  • Provide a large number of open-source software packages for Yum
  • Open source and free use of Epel repo 100%
  • It does not copy Linux core software, nor does it have compatibility issues.
  • All epel packages are maintained by the Fedora team.
How to enable EPEL on RHEL/CentOS 7/6/5

First you need to useDownload the required files using tools such as wget and use them on the system.Run RPM to enable the EPEL repository. Use the following
Provided links (make sure you are the root user ):

RHEL/CentOS 7 64bit
## RHEL/CentOS 7 64-Bit ### wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm# rpm -ivh epel-release-7-9.noarch.rpm
RHEL/CentOS 6 32-64 Bit
## RHEL/CentOS 6 32-Bit ### wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm# rpm -ivh epel-release-6-8.noarch.rpm## RHEL/CentOS 6 64-Bit ### wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm# rpm -ivh epel-release-6-8.noarch.rpm
RHEL/CentOS 5 32-64 Bit
## RHEL/CentOS 5 32-Bit ### wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm# rpm -ivh epel-release-5-4.noarch.rpm## RHEL/CentOS 5 64-Bit ### wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm# rpm -ivh epel-release-5-4.noarch.rpm
RHEL/CentOS 4 32-64 Bit
## RHEL/CentOS 4 32-Bit ### wget http://download.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm# rpm -ivh epel-release-4-10.noarch.rpm## RHEL/CentOS 4 64-Bit ### wget http://download.fedoraproject.org/pub/epel/4/x86_64/epel-release-4-10.noarch.rpm# rpm -ivh epel-release-4-10.noarch.rpm
How to verify the EPEL Repository

Run the following command to verify whether the EPEL repo is enabled. If you have enabled it, you may see the following content.

yum repolist

Sample Output

➜ ~ yum repolistLoaded plugins: fastestmirrorDetermining fastest mirrors * base: mirrors.cn99.com * epel: mirror.lzu.edu.cn * extras: mirror.lzu.edu.cn * updates: mirror.lzu.edu.cnrepo id repo name status!base/7/x86_64 CentOS-7 - Base 9,363!dockerrepo Docker Repository 90!epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,179!extras/7/x86_64 CentOS-7 - Extras 263!kubernetes Kubernetes 5!updates/7/x86_64 CentOS-7 - Updates 834repolist: 21,734
How do I use EPEL?

You need to use the yum command to search for and install the software package. For example, we use epel repo to searchZabbix:

yum --enablerepo=epel info zabbix

Sample Output

Available PackagesName : zabbixArch : i386Version : 1.4.7Release : 1.el5Size : 1.7 MRepo : epelSummary : Open-source monitoring solution for your IT infrastructureURL : http://www.zabbix.com/License : GPLDescription: ZABBIX is software that monitors numerous parameters of a network.

We can also use options–enablerepo=epelInstall zabbix

# yum --enablerepo=epel install zabbix

Note: The default epel configuration file is/etc/yum.repos.d/epel.repoAnd other tools. Most of the software packages in Epel are composed of Fedora

Translator's opinion

This article introducesEPELThe basic knowledge of EPEL is very helpful to individuals and understands the origin and Maintenance Organization of EPEL. When you install EPELInstall the correct version corresponding to the system. WeChat:QuanTalk:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.