What is EPEL?
EPEL,enterprise Linux Extra Packages is an open source, free repository that provides extra packages for enterprise Linux. The EPEL repository was created because Fedora contributors wanted to use their RHEL and other compatible distributions (e.g. CentOS,Rocky Linux, AlmaLinux, etc.).
The EPEL repository is also known for bringing add-on and update packages that may be in the core repository as well as dependencies required by other external repositories such as the Remi PHP repository.
Install EPEL
Start by updating the CentOS stream to ensure that all existing packages are up to date.
sudo dnf upgrade --refresh -y
Delete the DNF subscription manager.
at present,CentOS Stream 9DNF plug-inManager may cause problems with the subscription manager. In the long run, this will be ISO Because CentOS Stream is free to use, but you need to remove it manually or you will not be able to proceed with the installation.
sudo dnf erase subscription-manager -y
Install the EPEL repository. Given that CentOS 9 Stream is an upstream version of RHEL, it is recommended to install these two repositories. Packages of it may now generally be required.
First, enable CRB.
sudo dnf config-manager --set-enabled crb
Next,Install EPEL
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
Confirm whether EPEL or EPEL Next installation is successful
sudo dnf repolist | grep epel
Congratulations, you have successfully installed EPEL!
How to remove (uninstall) EPEL or EPEL Next
Ideally you don't need to delete the repository after installation. However, if you have to remove it, use the following command.
Delete EPEL repository:
sudo dnf remove epel-release
To delete the EPEL Next repository:
sudo dnf remove epel-next-release
EPEL is a well-known and highly used repository. You may need to install it on downstream versions of RHEL as it usually contains base packages on a daily basis, especially ifserversuperior.
Enable REMI repository
Since EPEL is not ready yet, now you have to enable the "remi" repository, which provides a lot of packages usually available in EPEL.
dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
dnf config-manager --set-enabled remi