Search

How to Install and Enable the EPEL repository on Rocky 8

How to Install and Enable the EPEL Repository on Rocky 8

The Extra Packages for Enterprise Linux (EPEL) repository provides additional high-quality packages for Enterprise Linux distributions. In this guide, we will walk you through the steps to install and enable the EPEL repository on Rocky 8.

Step-by-Step Guide

Step 1: Update Your System

Before installing the EPEL repository, it's good practice to update your system packages. Run the following command:

sudo dnf update -y

Step 2: Install the EPEL Repository

Install the EPEL repository using the following command:

sudo dnf install epel-release -y

This will download and install the necessary EPEL repository configuration files.

Step 3: Enable the EPEL Repository

The EPEL repository should be enabled automatically after installation. However, you can manually enable it using the following command:

sudo dnf config-manager --set-enabled epel

Step 4: Verify the EPEL Repository

To verify that the EPEL repository is installed and enabled, you can list all enabled repositories:

sudo dnf repolist

Look for a line containing epel in the output.

Step 5: Install Packages from EPEL

Once the EPEL repository is enabled, you can install packages from it. For example, to install htop, a popular system-monitoring tool, run:

sudo dnf install htop -y

Conclusion

Congratulations! You have successfully installed and enabled the EPEL repository on Rocky 8. This will give you access to a wide range of additional packages commonly used on Enterprise Linux systems.

If you have any questions or run into any issues, feel free to leave a comment below or refer to the official Rocky Linux and EPEL documentation.

Sys Admin

Sys Admin

I am a Red Hat Certified Engineer (RHCE) and working as an IT Professional since 2012...