Enable Epel, Remi, Atrpms in RHEL/CentOS

It’s no secret that CentOS and other RedHat-like systems come with a standard set of repositories. Unfortunately, many required packages are missing.

A common practice is to connect additional software repositories, such as Epel, Remi, Atrpms.

Epel (Extra Packages for Enterprise Linux):

CentOS 8 64-Bit:

rpm -ivh https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/e/epel-release-8-16.el8.noarch.rpm

RHEL/CentOS 7 64-Bit:

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

RHEL/CentOS 6 32/64-Bit

rpm -ivh https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/e/epel-release-6-8.noarch.rpm

RHEL/CentOS 5 32/64-Bit

wget https://archives.fedoraproject.org/pub/archive/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm

noarch means that the architecture has no role for them.

REMI

Contains the latest versions of php and mysql. Requires Epel.

CentOS 8 64-Bit:

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-8.rpm

RHEL/CentOS 7 32/64-Bit:

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

RHEL/CentOS 6 32/64-Bit

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

RHEL/CentOS 5 32/64-Bit

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

RPMForge

RHEL/CentOS 6 64-Bit:

rpm -ivh https://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

RHEL/CentOS 6 32-Bit:

rpm -ivh https://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

RHEL/CentOS 5 64-Bit

wget https://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

RHEL/CentOS 5 32-Bit

wget https://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm

ELRepo

RHEL/CentOS 8 32/64-Bit:

rpm -Uvh https://rpmfind.net/linux/centos/8-stream/extras/ppc64le/os/Packages/elrepo-release-8.1-1.el8.elrepo.noarch.rpm

RHEL/CentOS 7 32/64-Bit:

glibc = 2.17 is needed by elrepo-release-7.0-4.el7.elrepo.noarch

fix:

yum install -y glibc
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

RHEL/CentOS 6 32/64-Bit:

rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm

RHEL/CentOS 6 32/64-Bit:

rpm -Uvh http://www.elrepo.org/elrepo-release-5-5.el5.elrepo.noarch.rpm

In order to enable these repositories, you need to edit one of the following files accordingly:

  • /etc/yum.repos.d/epel.repo
  • /etc/yum.repos.d/remi.repo
  • /etc/yum.repos.d/atrpms.repo
  • /etc/yum.repos.d/rpmforge.repo

The value of the ENABLED parameter determines whether it is enabled (1) or disabled (0).

In the case of RedHat, it is recommended to disable unused repositories.

Sources of information: