CentOS / RHEL / Scientific Linux 6/5 Enable and Install EPEL Repo
To enable and install the EPEL (Extra Packages for Enterprise Linux) repository on CentOS/RHEL/Scientific Linux 6/5, you can follow these steps:
- Download the EPEL repository RPM file:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpmReplace "6" with "5" in the URL if you are using Scientific Linux 5.
- Install the EPEL repository RPM file:
sudo rpm -Uvh epel-release-latest-6.noarch.rpm - Verify the installation by checking the contents of the repository file:
cat /etc/yum.repos.d/epel.repoThis will display the contents of the EPEL repository file and show that the repository has been successfully enabled.
yum command to install packages from the EPEL repository.Note: You may need to have root access or use sudo in order to run the rpm and yum commands.
