Menu
User

DropVPS Team

Writer: Cooper Reagan

How to install epel repository on centos 7

How to install epel repository on centos 7

Publication Date

07/18/2025

Category

Articles

Reading Time

2 Min

Table of Contents

The EPEL (Extra Packages for Enterprise Linux) repository provides access to thousands of additional packages that are not available in the default CentOS repositories. If you want to install tools like htop, fail2ban, or nginx, enabling EPEL is often the first step.

Step 1: Update the System

Before adding any repositories, it’s a good idea to update your system packages:

sudo yum update -y

Step 2: Install the EPEL Repository

The EPEL repository is maintained by the Fedora Project and can be installed with a single command:

sudo yum install epel-release -y

This installs a .repo file in /etc/yum.repos.d/ that enables access to the EPEL mirror list.

Step 3: Verify the Repository

To confirm that the EPEL repo is enabled:

yum repolist

You should see something like:

epel/x86_64        Extra Packages for Enterprise Linux 7 - x86_64

Alternatively, run:

yum info epel-release

It will display version info and repo details if successfully installed.

Step 4: Install a Package from EPEL

Test that it works by installing a common EPEL package:

sudo yum install htop -y

If the package installs without any errors, the repository is working correctly.

Linux VPS
U
Loading...

Related Posts

How to install epel repository on centos 7