How To Install EPEL Repo on a CentOS and RHEL 7.x

Originally published at: https://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/

How do I install the extra repositories such as Fedora EPEL repo on a Red Hat Enterprise Linux server version 7.x or CentOS Linux server version 7.x?

Hi,

Need your help and suggestion on patching centos to 7.7.
As of now server is running with centos 7.6 but when i try check for latest updates. its only listing two packages. Please help on it to update 7.7 patch level.

---------------------------------[root@localhost tmp]# yum check-update
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
http://ccmaster01.map.mandiant.com/repo/epel/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - “Failed connect to ccmaster01.map.mandiant.com:80; No route to host”

atop.x86_64 2.4.0-4.el7 epel
libsodium.x86_64 1.0.18-1.el7 epel
python2-crypto.x86_64 2.6.1-16.el7 epel
python2-msgpack.x86_64 0.5.6-5.el7 epel
python2-psutil.x86_64 2.2.1-5.el7 epel
python2-typing.noarch 3.5.2.2-4.el7 epel
Obsoleting Packages
python2-redis.noarch 2.10.6-1.el7 epel
python-redis.noarch 2.10.3-1.el7 @epel
[root@localhost tmp]#
[root@localhost tmp]# cat /etc/os-release
NAME=“CentOS Linux”
VERSION=“7 (Core)”
ID=“centos”
ID_LIKE=“rhel fedora”
VERSION_ID=“7”
PRETTY_NAME=“CentOS Linux 7 (Core)”
ANSI_COLOR=“0;31”
CPE_NAME=“cpe:/o:centos:centos:7”

CENTOS_MANTISBT_PROJECT=“CentOS-7”
CENTOS_MANTISBT_PROJECT_VERSION=“7”
REDHAT_SUPPORT_PRODUCT=“centos”
REDHAT_SUPPORT_PRODUCT_VERSION=“7”

[root@localhost tmp]#

Just run

yum update