To install and enable the EPEL (Extra Packages for Enterprise Linux) repository on a CentOS or RHEL 7 system, you can use the following steps:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
This will download the latest version of the EPEL release package for CentOS and RHEL 7.
sudo yum install epel-release-latest-7.noarch.rpm
This will install the EPEL release package and enable the EPEL repository.
sudo yum update
This will update the package index to include the packages from the EPEL repository.
yum repolist
This will list the repositories that are enabled on your system. The EPEL repository should be listed.