To enable the EPEL (Extra Packages for Enterprise Linux) repository on Red Hat Enterprise Linux 8 (RHEL 8), you can follow these steps:
- Download and Install the EPEL Repository RPM:Open a terminal and run the following command to download and install the EPEL repository RPM:bashCopy code
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
This command uses thednf
package manager to install the EPEL repository. - Enable the EPEL Repository:By default, the EPEL repository is disabled after installation. To enable it, run the following command:bashCopy code
sudo dnf config-manager --set-enabled epel
This command modifies the DNF configuration to enable the EPEL repository. - Verify the EPEL Repository:You can verify that the EPEL repository is enabled by running:bashCopy code
sudo dnf repolist
This command should display a list of repositories, and you should see “epel” in the list.
Now, you have successfully enabled the EPEL repository on your Red Hat Enterprise Linux 8 system. You can use the EPEL repository to install additional packages that are not included in the default RHEL repositories.
Keep in mind that the EPEL repository is a community-supported repository, and the packages provided by EPEL are not officially supported by Red Hat. Be cautious when installing packages from third-party repositories and ensure that they meet your security and compatibility requirements.