Enable EPEL Repository for Rhel/centos 7.x/6.x/5.x

Source: Internet
Author: User
Tags epel repo yum repolist

This howto guide shows your ' ll how to enable EPEL repository under Rhel/centos 6/5 to the install additional standard Open source packages by using the YUM command.

What is EPEL

EPEL (Extra Packages for Enterprise Linux) are open source and free community based repository project from Fedora team which PR Ovides 100% High quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS , and scientific Linux. Epel project is not a part of Rhel/cent OS but it's designed for major Linux distributions by providing lots of open sour Ce packages like networking, SYS admin, programming, monitoring and so on. The most of the Epel packages is maintained by Fedora Repo.

Why do we use EPEL repository?

    1. Provides lots of open source packages to install via Yum.
    2. Epel Repo is 100% open source and free to use.
    3. It does not provide any core duplicate packages and no compatibility issues.
    4. All Epel packages is maintained by Fedora Repo.
How to Enable EPEL Repository in Rhel/centos 7/6/5?

First, you need to download the file using Wget and then install it using RPM on your system to enable T He EPEL repository. Use below links based on your Linux OS versions. (Makesure must is root user).

Rhel/centos 7 Bit

## RHEL/CentOS 7 64-Bit ##
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
# rpm -ivh epel-release-7-5.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 does I Verify EPEL Repo?

You need to run the following command to verify, the EPEL repository is enabled. Once you ran, the command you'll see Epel repository.

# yum Repolist

Sample Output

Loaded plugins: downloadonly, fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: centos.aol.in
 * epel: ftp.cuhk.edu.hk
 * extras: centos.aol.in
 * rpmforge: be.mirror.eurid.eu
 * updates: centos.aol.in
Reducing CentOS-5 Testing to included packages only
1469 packages excluded due to repository priority protections
repo id                           repo name                                                      status
base                              CentOS-5 - Base                                               2,718+7
epel Extra Packages for Enterprise Linux 5 - i386 4,320+1,408
extras                            CentOS-5 - Extras                                              229+53
rpmforge                          Red Hat Enterprise 5 - RPMforge.net - dag                      11,251
repolist: 19,075

How does I use EPEL Repo?

You need to use the YUM command for searching and installing packages. For example we search for Zabbix the package using Epel repo, lets see it's available or not under Epel.

# 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.

Let's install Zabbix package using epel repo option –enablerepo=epel switch.

# Yum--enablerepo=epel Install Zabbix

Note: The Epel configuration file is located under /etc/yum.repos.d/epel.repo.

This is the can install as many as high standard open source packages using EPEL repo.

Enable EPEL Repository for Rhel/centos 7.x/6.x/5.x

Related Article

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.