How to install the latest version of EPEL Repo on CentOS 7

We can install a wide variety of softwares and packages from the CentOs main repository. But some important packages (such as PHP 7, phpMyAdmin, HTOP and many more) are not available in the CentOS base repository.

Most of the missing packages are available from the CentOS epel repository (popular Extra Packages for Enterprise Linux).

To install the epel repo on CentOs 7, run the following command:

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

After that, run the yum repolist command to make sure that the CentOS epel repository has been enabled:

yum repolist

As you can see, enabling the CentOS epel repository is a relatively straightforward process. In the next tutorial we will learn how to prioritize repositories using the yum-plugin-priorities.