Added EPEL repositories in CentOS

Installing programs in a Linux distro such as CentOS or RHEL (Red Hat Enterprise Linux) is just typing the yum install command followed by the package name. But not all programs are in the default repository.

Well … for that sometimes we need to add another repository that offers more free and open source software. The most common is the Fedora-managed EPEL (Extra Packages for Enterprise Linux) repository and can be utilized by a single Linux distro (RHEL, CentOS, Oracle Linux, Scientific Linux), so CentOS is not limited.

The easiest and most recommended way to first try is to install it via yum, and the command is:

yum install epel-release

But this requires the CentOS Extras repository on your server, eg nothing or you failed then we can add it manually depending on the version and architecture of the CentOS you are using.

CentOS 4.x 32-Bit

wget http://download.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm
rpm -ivh epel-release-4-10.noarch.rpm

CentOS 4.x 64-Bit

wget http://download.fedoraproject.org/pub/epel/4/x86_64/epel-release-4-10.noarch.rpm
rpm -ivh epel-release-4-10.noarch.rpm

CentOS 5.x 32-bit

wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5 * .rpm

CentOS 5.x 64-bit

wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm

CentOS 6.x 32-Bit

wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

CentOS 6.x 64-bit

wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

CentOS 7.x (only 64-bit edition)

wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -ivh epel-release-7-5.noarch.rpm

Do not forget to execute the above repository EPEL installation command requires root privileges.

Leave a Reply

Your email address will not be published. Required fields are marked *