To enable and install the EPEL (Extra Packages for Enterprise Linux) repository on CentOS 8, you can use the dnf command.
epel-release package is already installed on your system:dnf list installed epel-release
If the epel-release package is not installed, you will see the following output:
No matching Packages to list
If the epel-release package is already installed, you will see something like this:
Installed Packages epel-release.noarch 8-8.el8 @extras
epel-release package is not installed, you can install it using the following command:dnf install epel-release
This will install the epel-release package, which will enable the EPEL repository on your system.
epel-release package is installed, you can use the dnf command to install packages from the EPEL repository. For example, to install the htop package from the EPEL repository, you can use the following command:dnf install htop
This will install the htop package from the EPEL repository.