Search

How to Install and Enable the EPEL repository on rhel 9

How to Install and Enable the EPEL Repository on RHEL 9

The Extra Packages for Enterprise Linux (EPEL) repository is an important resource for administrators using RHEL systems. It offers a range of additional packages that are not available in the default repositories, making it easier to install software that you may need for various applications or developments. Below are the steps to install and enable the EPEL repository on RHEL 9.

Step 1: Update Your System

Before installing the EPEL repository, it is recommended to ensure that your system packages are up to date. Open your terminal and run:

sudo dnf update

Step 2: Install the EPEL Repository

To install the EPEL repository on RHEL 9, use the following command:

sudo dnf install epel-release

This will download and install the EPEL repository configurations from the official repository.

Step 3: Enable the EPEL Repository

After installing the EPEL repository, you can enable it using:

sudo dnf config-manager --set-enabled epel

Step 4: Verify the EPEL Repository

To check if the EPEL repository is enabled, you can list all the repositories with the following command:

sudo dnf repolist

Look for entries related to EPEL among the listed repositories. It should show something like epel in the names.

Step 5: Start Using EPEL Repository Packages

With the EPEL repository enabled, you can now install packages available in it. For example, if you want to install the htop package, you can run:

sudo dnf install htop
Note: Always review the packages you are installing to ensure they meet the security and compatibility requirements for your system.

That's it! You now have the EPEL repository installed and enabled on your RHEL 9 system. This will greatly expand the available software for your enterprise Linux environment.

 

Sys Admin

Sys Admin

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