How to Install and Enable the EPEL repository on AlmaLinux 9
Introduction
The Extra Packages for Enterprise Linux (EPEL) repository is a valuable resource that provides additional packages for RHEL-based distributions, including AlmaLinux 9. This guide will walk you through the process of installing and enabling the EPEL repository on your AlmaLinux 9 system.
Why Use EPEL?
The EPEL repository is maintained by the Fedora Project and offers high-quality, stable packages that are not included in the standard AlmaLinux repositories. This can be extremely useful for installing additional tools and software that are required for development, system administration, and other tasks.
Prerequisites
- An AlmaLinux 9 system
- Root or sudo access
- Internet connection
Steps to Install and Enable the EPEL Repository
Step 1: Update Your System
Before installing any new packages, it is a good practice to update your system to ensure all existing packages are up to date. Open a terminal and run:
sudo dnf update -y
Step 2: Install the EPEL Repository
The EPEL repository can be installed using the dnf
package manager. Run the following command to install the EPEL repository:
sudo dnf install epel-release -y
Step 3: Enable the EPEL Repository
Once installed, the EPEL repository should be enabled automatically. However, you can verify its status and enable it manually if needed. To check the status, use:
sudo dnf repolist
You should see the EPEL repository listed. If it is not enabled, you can enable it manually using:
sudo dnf config-manager --set-enabled epel
Step 4: Verify the Installation
To ensure the EPEL repository is working correctly, you can try installing a package from it. For example:
sudo dnf install htop -y
If the package installs successfully, it means the EPEL repository is installed and enabled correctly.
Conclusion
Congratulations! You have successfully installed and enabled the EPEL repository on your AlmaLinux 9 system. You can now take advantage of the additional packages provided by EPEL to enhance your system's capabilities.