How to Install EPEL on AlmaLinux EL9 or EL8

EPEL (Extra Packages for Enterprise Linux) stands as a crucial repository for Enterprise Linux distributions, and it plays a significant role for AlmaLinux users. In this guide, we will navigate through the process and benefits of how to install EPEL on AlmaLinux 9 or its older stable enterprise release of AlmaLinux 8.

Key Advantages of Integrating EPEL with AlmaLinux:

  1. Access to Additional Software: EPEL provides many software packages unavailable in the default AlmaLinux repositories, broadening your options and capabilities.
  2. Smooth Integration: The packages in EPEL are designed to work seamlessly with AlmaLinux, ensuring that you can use your package management tools without any hitches.
  3. Consistent Reliability: EPEL maintains a high standard of stability and reliability, ensuring that the additional packages you install are dependable.

Notable Features of EPEL:

  1. Diverse Range of Software: From web servers and programming languages to system utilities, EPEL houses a wide variety of software categories.
  2. Assured Quality: A dedicated team of maintainers ensures that all packages in EPEL adhere to strict quality guidelines and standards.
  3. Regular Updates: EPEL ensures that its packages are up-to-date, addressing security vulnerabilities and providing necessary bug fixes promptly.

Overall, integrating EPEL with AlmaLinux enhances your system’s capabilities, providing access to a vast array of additional software while ensuring a seamless and reliable experience. Now, we will proceed to install EPEL on AlmaLinux.

Update AlmaLinux Before EPEL Installation

Ensuring your system is up to date is a crucial first step before proceeding with any new installations. This practice helps in aligning all existing packages to their latest versions, mitigating potential conflicts during the installation process.

To update your system, execute the following command:

sudo dnf upgrade --refresh

Install EPEL and EPEL Next on AlmaLinux 9 or 8

EPEL (Extra Packages for Enterprise Linux) is a repository that provides additional packages for your Enterprise Linux distribution. The installation process is straightforward, but it’s vital to select the appropriate method corresponding to your version of AlmaLinux.

Import EPEL and EPEL Next on AlmaLinux 9

In this section, we will focus on AlmaLinux 9. Start by enabling the CRB (CodeReady Builder) repository. The CRB repository is a newer addition, serving as a replacement for the older PowerTools repository, and it’s essential for the EPEL installation.

sudo dnf config-manager --set-enabled crb

With the CRB repository enabled, proceed to install EPEL using the following command:

sudo dnf install \ \

If you do not require EPEL Next, you can opt out of installing it by omitting the last line from the command above.

Import EPEL and EPEL Next on AlmaLinux 8

Transitioning to AlmaLinux 8, the process slightly differs. Unlike AlmaLinux 9, there’s no need to enable the PowerTools repository. You can directly install EPEL by running:

sudo dnf install \ \

Like the previous version, if EPEL Next is not required, remove the corresponding line from the command.

Confirm EPEL Installation on AlmaLinux 9 or 8

Now that EPEL is installed, it’s prudent to verify the installation to ensure everything is set up correctly. A quick and effective way to do this is by using the dnf repolist command, which should now display the EPEL repository.

dnf repolist | grep epel
Terminal screenshot displaying the EPEL and EPEL-Next repositories in the DNF repolist using the grep command on AlmaLinux.Pin
Screenshot demonstrating how to confirm the addition of EPEL and EPEL-Next repositories on AlmaLinux using the DNF repolist and grep commands.

If the repository appears in the output, you have successfully installed EPEL on your AlmaLinux system.

Utilizing EPEL Repository Commands on AlmaLinux 9 or 8

In this section, we will explore various commands that are essential for interacting with the EPEL repository on your AlmaLinux system. These commands will aid you in searching, installing, and managing packages from the EPEL repository.

Listing Available Packages

To view all the packages that the EPEL repository has to offer, you can use the following command:

dnf list available --enablerepo=epel

This command fetches and displays a comprehensive list of all available packages in the EPEL repository, providing a clear overview of your options.

Searching for a Specific Package

If you have a particular package in mind that you wish to install or learn more about, you can search for it using:

dnf search package-name --enablerepo=epel

Replace package-name with the name of the package you are looking for. This command will return results related to your search query, helping you to locate the package you need quickly.

Installing a Package

Once you have identified the package you wish to install, you can proceed to install it using:

dnf install package-name --enablerepo=epel

Ensure to replace package-name with the actual name of the package you intend to install. This command will fetch the package from the EPEL repository and install it on your system.

Checking for Updates

To stay updated and secure, it is crucial to regularly check for updates for the packages installed on your system. To check for updates on packages that were installed from the EPEL repository, use the following:

dnf check-update --enablerepo=epel

This command will search for available updates in the EPEL repository and notify you if any are found.

Managing EPEL Repositories on AlmaLinux 9 or 8

Removing EPEL Repositories

While it is generally recommended to keep the EPEL repository enabled for access to a broader range of packages, there might be scenarios where you need to remove it. Below are the commands to remove the EPEL repositories:

Remove EPEL Repository

sudo dnf remove epel-release

Remove EPEL Next Repository

sudo dnf remove epel-next-release

Final Thoughts

By following these steps and utilizing these commands, you can effectively manage the EPEL repository on your AlmaLinux system, ensuring you can access a wide array of additional packages and updates.

Leave a Comment

Your Mastodon Instance
Share to...