Extra Packages for Enterprise Linux (EPEL) is repository with a high quality set of additional packages for Enterprise Linux operating systems such as Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL), AlmaLinux and any other Linux distribution from the RHEL family. In this guide we will perform an installation of EPEL repository on an Rocky Linux 8 / AlmaLinux OS 8 system.

In our recent post we discussed the installation of AlmaLinux OS 8 on a physical server or virtualized environment. This is the main pre-requisite before you can enable EPEL repository on AlmaLinux/Rocky Linux 8. You’ll also need sudo privileges in your user account to install EPEL Repository on AlmaLinux OS 8 / Rocky Linux 8.

Run the command below to install EPEL Repository on Rocky Linux 8 / AlmaLinux OS 8:

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

Accept installation using the y key:

Dependencies resolved.
==================================================================================================================================================================
 Package                                  Architecture                       Version                               Repository                                Size
==================================================================================================================================================================
Installing:
 epel-release                             noarch                             8-10.el8                              @commandline                              22 k

Transaction Summary
==================================================================================================================================================================
Install  1 Package

Total size: 22 k
Installed size: 32 k
Is this ok [y/N]: y

Download and installation of EPEL Repository on AlmaLinux OS 8 should start.

Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                          1/1
  Installing       : epel-release-8-10.el8.noarch                                                                                                             1/1
  Running scriptlet: epel-release-8-10.el8.noarch                                                                                                             1/1
  Verifying        : epel-release-8-10.el8.noarch                                                                                                             1/1

Installed:
  epel-release-8-10.el8.noarch

Complete!

Check current list of repositories on AlmaLinux OS 8 to confirm EPEL is available:

#AlmaLinux 8
$ sudo yum repolist
repo id                                                     repo name
appstream                                                   AlmaLinux 8 - AppStream
baseos                                                      AlmaLinux 8 - BaseOS
epel                                                        Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                                                Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                                                      AlmaLinux 8 - Extras
powertools                                                  AlmaLinux 8 - PowerTools

#Rocky Linux 8
$ sudo yum repolist
repo id                                                     repo name
appstream                                                   Rocky Linux 8 - AppStream
baseos                                                      Rocky Linux 8 - BaseOS
epel                                                        Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                                                Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                                                      Rocky Linux 8 - Extras

Test installation of a package in EPEL repository:

$ sudo yum install  collectd
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                                            249 kB/s | 557 kB     00:02
Extra Packages for Enterprise Linux 8 - x86_64                                                                                    1.7 MB/s | 9.2 MB     00:05
Dependencies resolved.
==================================================================================================================================================================
 Package                                Architecture                         Version                                     Repository                          Size
==================================================================================================================================================================
Installing:
 collectd                               x86_64                               5.9.0-5.el8                                 epel                               716 k

Transaction Summary
==================================================================================================================================================================
Install  1 Package

Total download size: 716 k
Installed size: 2.3 M
Is this ok [y/N]: y

That’s all about installing EPEL repository on Rocky Linux 8 / AlmaLinux OS 8. We hope this guide was helpful and thank you for reading through.