How to Use EPEL on CentOS 7

29/12/2020
The full form of EPEL is Extra Packages for Enterprise Linux. It is software package repository for Red Hat Enterprise Linux (RHEL) and CentOS. The EPEL repository is made available by the Fedora team. They provide free and open source packages that are not available in the official package repository of RHEL and CentOS to extend the functionalities of these operating systems. EPEL packages are of very high quality and very stable.

To find out more about EPEL packages, go to the official website of EPEL at https://fedoraproject.org/wiki/EPEL

In this article, I will show you how to add and use EPEL package repository on CentOS 7. Let’s get started.

Availability of EPEL Repository:

At the time of this writing, EPEL packages are available for RHEL 6 or CentOS 6, and RHEL 7 or CentOS 7. The other versions are obsolete and are no longer available for download.

EPEL Package repository for RHEL 7 and CentOS 7 is called EPEL 7. EPEL 7 has packages built for Intel or AMD 64-bit (x86_64), Power PC 64-Bit (PPC64), Power PC 64-bit Little Endian (PPC64LE), and Adirondack Architectural Heritage 64-bit (AARCH64) CPU architectures.

Sadly, no support for 32-bit systems.

If you want 32-bit support on the EPEL repository, then you will have to use EPEL 6 on RHEL 6 or CentOS 6, as RHEL 7 and CentOS 7 don’t have any 32-bit version available.

Enabling EPEL Package Repository on CentOS 7:

On CentOS 7, EPEL 7 package repository can be enabled easily.

If you have CentOS 7 extras repository enabled, then all you have to do is install the epel-release package to enable EPEL 7 repository on CentOS 7.

You can also install EPEL 7 package from the official website of EPEL to enable EPEL 7 repository on CentOS 7.

I am going to show you both ways to enable EPEL 7 package repository on CentOS 7.

Installing epel-release from CentOS 7 Extras:

You can check whether CentOS 7 extras repository is enabled with the following command:

$ sudo yum repolist

As you can see, I have extras repository enabled.

Now run the following command to install epel-release package on CentOS 7:

$ sudo yum install epel-release

Now press y and then press <Enter>.

The required package should be installed and EPEL repository should be enabled.

Now check whether EPEL repository is enabled with the following command:

$ sudo yum repolist

As you can see from the marked section of the screenshot below, EPEL repository is enabled.

If you don’t have extras repository enabled or you don’t want to enable extras repository for installing only one package, then you can just temporarily enable extras repository and install epel-release with the following command:

$ sudo yum –enablerepo=extras install epel-release

Installing EPEL 7 from the Official Website of EPEL:

If you would rather install EPEL repository on CentOS 7 from the official website of EPEL, then run the following command:

$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Now press y and then press <Enter>.

EPEL repository should be installed.

You can run the following command to verify whether it’s enabled:

$ sudo yum repolist

As you can see, it’s enabled.

Searching for Packages in the EPEL Repository:

You can search for packages in the EPEL repository with the following command:

$ sudo yum –disablerepo=* –enablerepo=epel QUERY

NOTE: Here, QUERY is the package that you want to search for. I searched for p7zip on EPEL repository.

As you can see, the packages on the EPEL repository that matched the search QUERY is listed.

Installing Packages from the EPEL Repository:

If you have EPEL repository enabled, you can just install any package in the EPEL repository with the following command:

$ sudo yum install PACKAGE_NAME

NOTE: Here, PACKAGE_NAME is the name of the package that you want to install.

 If you have disabled the EPEL repository and you want to install a package from the EPEL repository, you can temporarily enable EPEL repository and install the package you want with the following command:

$ sudo yum install –enablerepo=epel PACKAGE_NAME

Let’s say, you want to install p7zip-gui from EPEL repository, you would run the following command:

$ sudo yum install p7zip-gui

Now press y and then press <Enter>.

If you see this, press y and then press <Enter> to accept the GPG key.

The package should be installed.

Removing EPEL Repository from CentOS 7:

You can easily remove EPEL repository from your CentOS 7 machine with the following command:

$ sudo yum remove epel-release

Now press y and then press <Enter>.

EPEL repository should be completely removed from your CentOS 7 machine.

You can verify whether EPEL is removed with the following command:

$ sudo yum repolist all

As you can see, epel repository is no longer available.

So that’s how you install and use EPEL repository on CentOS 7. Thanks for reading this article.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

[Zabbix] Giám sát Windows Server sử dụng SMNP

SNMP (Simple Network Manager Protocol) là giao thức rất phổ biến trong môi trường network hiện nay, hầu...
30/12/2020

[Cobbler] Triển khai client CentOS 7 bằng cobbler

Hệ điều hành CentOS 7 được rất nhiều các cá nhân, doanh nghiệp, tổ chức cài đặt để...
30/12/2020

Hướng dẫn cài đặt IP static ubuntu 20.04

Phiên bản Ubuntu 20.04 đã chính thức ra mắt. Và ở bài viết này mình sẽ hướng dẫn các bạn làm...
30/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Hướng Dẫn Chọn Dịch Vụ Thuê Địa Chỉ IPv4
10/03/2025

Reliable IPv4 and IPv6 Subnet Rental Services: The Perfect Solution for Global Businesses
23/12/2024

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024