How to Add EPEL Repository on Rocky Linux, AlmaLinux and CentOS

How to add EPEL repository on Rocky Linux, AlmaLinux and CentOS

Today we Learn How to add EPEL repository on Rocky Linux, AlmaLinux and CentOS, The EPEL ( Extra Packages for Enterprise Linux ) repository provides additional software packages that are not included in the standard Red Hat, Rocky Linux and CentOS repositories.

The EPEL repository was created because Fedora contributors wanted to use the packages they managed on Red Hat Enterprise Linux (RHEL) and its derivatives such as Rocky Linux, AlmaLinux OS, CentOS, Oracle Linux, and Scientific Linux.

Enabling this repository gives you access to popular software packages including NginX, R, and Python PiP

In this tutorial, we will show you how to enable the EPEL repository in CentOS.

Precondition

Before starting with the tutorial, make sure you are logged in as a user with sudo privilege

How to Install and Configure Ansible AWX on Rocky Linux 8.3 and CentOS 8

Rocky Linux 8.3 RC Available to Download

Enable EPEL Repository on CentOS 7

Enabling the EPEL repository on CentOS 7 is a fairly simple task, as the RPM package is EPEL included in the CentOS extras repository.

To install the EPEL release package, type the following command:

sudo yum install epel-release 

To verify that the EPEL repository is enabled, run the command yum repolistwhich will list all the available repositories.

sudo yum repolist 

This command will display the repo ID, name and package number for the enabled repository. The output will include a line for the EPEL repository.

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
...
repo id             repo name                                         status
base/7/x86_64       CentOS-7 - Base                                   10,019
epel/x86_64         Extra Packages for Enterprise Linux 7 - x86_64    12,912
extras/7/x86_64     CentOS-7 - Extras                                    371
updates/7/x86_64    CentOS-7 - Updates                                 1,098
repolist: 24,400 

Thats it. The EPEL repository is already enabled on your CentOS system.

AlmaLinux OS 8.4 Update Available to Download

CentOS Stream 9 Daily Build Available to Download

Activate the EPEL Repository in RHEL

This method will work on RHEL-based distributions including Red Hat, CentOS 6 and 7, Oracle Linux, Amazon Linux, and Scientific Linux.

To activate the EPEL repository, run the following command which will download and install the EPEL release package:

sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E '%{rhel}').noarch.rpm 

rpm -E '%{rhel}'will print the distribution version (6 or 7).

Conclusion

For more information on the EPEL repository, see the documentation EPEL.

How to Install Google Chrome on Ubuntu 20.04 and Ubuntu 21.04

3 Trackbacks / Pingbacks

  1. How to Create a Sudo User on Rocky Linux and CentOS - LinuxStoney
  2. How to Install and Configure Mono on Rocky Linux 8 and CentOS 8 - LinuxStoney
  3. How to Install and Use FFmpeg in Rocky Linux 8 - LinuxStoney

Leave a Reply

Your email address will not be published.


*