Search

How to Install and Enable the EPEL repository on Rocky 9

How to Install and Enable the EPEL Repository on Rocky 9

The Extra Packages for Enterprise Linux (EPEL) repository is an additional repository that provides high-quality and open source packages for Rocky Linux, Red Hat Enterprise Linux, and other derivates. Enabling EPEL on your Rocky 9 system can greatly extend the range of software that you have access to.

Follow the steps below to install and enable the EPEL repository on Rocky 9.

1. Update your system

Before installing any new packages, it's generally a good idea to update your system. Open a terminal and execute the following command:

sudo dnf update -y

2. Install the EPEL repository

To install the EPEL repository, use the following command:

sudo dnf install epel-release -y

This command installs the necessary package that configures your system to use the EPEL repository.

3. Verify EPEL repository is enabled

To ensure that the EPEL repository is enabled, you can use the following command:

sudo dnf repolist

You should see an entry for epel in the list of repositories enabled on your system.

4. Install a package from the EPEL repository

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

sudo dnf install htop -y

The package should install without any issues, thanks to the enabled EPEL repository.

Conclusion

You have successfully installed and enabled the EPEL repository on Rocky 9. This will grant you access to a wide array of additional software packages that are not available in the default Rocky Linux repositories. Happy installing!

Sys Admin

Sys Admin

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