RHEL/CentOS 7.x/6.x/5.x open EPEL repository

illustrate

This how-to article teaches you how to RHEL/CentOS 7.x/6.x/5.xenable EPEL repository support on your system so that you can install additional standard open source packages using yumcommands .

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, free community software repository project from the Fedora team,
designed to provide 100% high-quality
additional software for Linux distributions like RHEL (Red Hat Enterprise Linux), CentOS and Scientific Linux Bag. The Epel project is not part of RHEL or CentOS, it is designed for major Linux distributions as it provides
tools for networking, sysadmin, programming, monitoring, etc. Most packages in Epel are maintained by Fedora repo.

Why use EPEL repositories?

  • Provides a large number of open source packages for Yum
  • Epel repo is 100% open source and free to use
  • It does not duplicate the Linux core software and there are no 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 download the required files using a tool like wget , then open the EPEL repository using RPM on your system .
Use the link provided below according to your Linux system version (make sure you are 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 EPEL repository

Just run the command below to verify if the EPEL repo is enabled, if you have, you may see the following.

yum repolist

Sample Output

➜  ~ yum repolist
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirrors.cn99.com
 * epel: mirror.lzu.edu.cn
 * extras: mirror.lzu.edu.cn
 * updates: mirror.lzu.edu.cn
repo 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                                                                      834
repolist: 21,734

How do I use EPEL?

You need to use the yum command to search and install packages. For example, we use epel repo to search Zabbix:

yum --enablerepo=epel info zabbix

Sample Output

Available Packages
Name       : zabbix
Arch       : i386
Version    : 1.4.7
Release    : 1.el5
Size       : 1.7 M
Repo : epel
Summary    : Open-source monitoring solution for your IT infrastructure
URL        : http://www.zabbix.com/
License    : GPL
Description: ZABBIX is software that monitors numerous parameters of a network.

We can also –enablerepo=epelinstall zabbix using option

# yum --enablerepo=epel install zabbix

Note: The epel configuration file is waiting for /etc/yum.repos.d/epel.repothe tool by default. Most packages in Epel are provided by Fedora

Translator's point of view

This article introduces EPELthe basics of EPEL, which is very helpful for individuals, and understands the origin and maintenance organization of EPEL. Users should install the correct version corresponding to the system
when installing EPEL . WeChat: :QuanTalk

[External link picture transfer failed (img-Q2oLtcDD-1566044173726)(http://og2hmb2p7.bkt.clouddn.com/qrcode_for_gh_abe5e5036d49_258.jpg)]


The public account [QuanTalk] focuses on computer science and technology, independent thinking, reading and sharing. Welcome to pay attention to communication

Guess you like

Origin blog.csdn.net/u011387521/article/details/58588001