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.rpm
Replace “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.repo
This will display the contents of the EPEL repository file and show that the repository has been successfully enabled.
After completing these steps, you can use the 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.