Install EPEL on RHEL 10 | CentOS 10

Install EPEL on RHEL 10

Learn how to install and enable the EPEL repository on RHEL 10 or CentOS 10 step-by-step, with CLI commands, troubleshooting tips, and best practices.

Table of Contents

🔈Introduction

Installing the Extra Packages for Enterprise Linux (EPEL) repository on RHEL 10 or CentOS 10 unlocks a vast collection of high-quality, community-maintained open-source packages that are not included in the default repositories. Whether you’re managing a server or preparing a development environment, enabling EPEL ensures access to tools such as htop, nmap, ansible, nginx, and more.

This guide walks you through the process of installing and enabling EPEL on RHEL 10 / CentOS 10 using clean, secure, and supported methods. It includes:

  • Step-by-step CLI commands (copy‑ready)
  • Comparison tables for alternative methods
  • Best practices and troubleshooting tips

By the end, you’ll be able to install EPEL securely and confidently manage packages from this essential community repository.


✅ Why EPEL?

EPEL provides:

BenefitDescription
Expanded Package EcosystemAccess to many useful packages not available in base RHEL/CentOS repos
High-quality, Stable BuildsMaintained by Fedora/EPEL community, matching RHEL’s packaging standards
Security and SupportPackages follow enterprise-grade patching and release practices
Compatibility and StabilityDesigned to work seamlessly with RHEL’s package ecosystem

Installing EPEL becomes a standard best practice for system admins and developers who rely on Linux tools beyond those included by default.


▶️ Method 1: Using dnf to Install EPEL (Recommended)

🔄 Step-by-Step CLI Example

For RHEL 10 or CentOS 10, dnf is the default package manager.

				
					# 1. Ensure your system is up to date
sudo dnf update -y

# 2. Install EPEL release package on CentOS 10
sudo dnf install -y epel-release

# 3. Enable the EPEL repository on CentOS 10 (in case it's not enabled by default)
sudo dnf config-manager --set-enabled epel

# 4. Install EPEL release package on RHEL 10
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm

# 4. Verify the EPEL repository is available
sudo dnf repolist

# 5. Install an example package from EPEL, e.g., htop
sudo dnf install -y htop

# 6. Confirm installation
htop --version
				
			

▶️ Method 2: Manual RPM Download & Installation

If epel-release is not available or network restrictions apply, you can manually download and install the RPM.

				
					# 1. Download epel-release RPM
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm

# 2. Install RPM
sudo dnf install -y epel-release-latest-10.noarch.rpm

# 3. Clean metadata
sudo dnf clean all

# 4. Update repo metadata
sudo dnf makecache

# 5. Install a sample package
sudo dnf install -y nmap

# 6. Confirm installation
nmap --version
				
			

📊 Quick Comparison Table

MethodProsCons
dnf install epel-releaseFast, simple, ensures correct version installedRequires network access to repos
Manual RPM downloadWorks in locked-down environmentsRequires manual version check

🔍 Verifying and Managing EPEL

Once installed, it’s useful to know how to check and manage packages.

				
					# 1. List all enabled repositories:
sudo dnf repolist

# 2. Search for available packages in EPEL:
sudo dnf search ansible --enablerepo=epel

# 3. Get info on a specific package:
sudo dnf info ansible --enablerepo=epel

# 4. Remove epel-release if needed:
sudo dnf remove -y epel-release

# 5. Prevent accidental updates from EPEL:
sudo dnf config-manager --set-disabled epel
				
			

🖥️ Sample Output & Verification

Here’s how your key verification steps might look:

				
					sudo dnf repolist
				
			
				
					Updating Subscription Management repositories.
repo id                                                             repo name
epel                                                                Extra Packages for Enterprise Linux 10 - x86_64
rhel-10-for-x86_64-appstream-rpms                                   Red Hat Enterprise Linux 10 for x86_64 - AppStream (RPMs)
rhel-10-for-x86_64-baseos-rpms                                      Red Hat Enterprise Linux 10 for x86_64 - BaseOS (RPMs)
				
			

Install htop:

				
					sudo dnf install htop
				
			
				
					Updating Subscription Management repositories.
Extra Packages for Enterprise Linux 10 - x86_64                                                                                2.7 MB/s | 4.7 MB     00:01    
Last metadata expiration check: 0:00:01 ago on Sat 30 Aug 2025 05:54:16 PM EDT.
Dependencies resolved.
===============================================================================================================================================================
 Package                          Architecture                 Version                              Repository                                            Size
===============================================================================================================================================================
Installing:
 htop                             x86_64                       3.3.0-5.el10_0                       epel                                                 196 k
Installing dependencies:
 hwloc-libs                       x86_64                       2.11.1-3.el10                        rhel-10-for-x86_64-baseos-rpms                       2.1 M
 ocl-icd                          x86_64                       2.3.2-8.el10                         rhel-10-for-x86_64-baseos-rpms                        69 k

Transaction Summary
===============================================================================================================================================================
Install  3 Packages

Total download size: 2.4 M
Installed size: 3.5 M
Is this ok [y/N]: Y
				
			

These outputs confirm that:

  • The EPEL repository is properly enabled.
  • Packages from EPEL can be installed and executed.

✅ Best Practices for Production Environments

  • Test before enabling – try installing to a staging or test server first.
  • Lock versions if required – set version locks for critical packages to avoid unexpected upgrades from EPEL.
  • Use repository isolation – when installing, prefer --enablerepo=epel flags to avoid dependency creep.
  • Regular health checks – periodically test EPEL mirror speed, availability, and data freshness.
  • Track changes – monitor EPEL changelog to know about critical updates or package removals.

🏁 Conclusion

Installing the EPEL repository on RHEL 10 or CentOS 10 is a critical first step for unlocking a much broader range of open-source software on enterprise Linux systems. Whether you’re a system administrator deploying production services or a developer setting up a powerful local environment, EPEL provides secure, stable, and well-maintained packages that enhance the capabilities of your system without compromising reliability.

In this guide, you learned:

  • Why EPEL is essential for RHEL and CentOS users.
  • How to install it using both the standard dnf method and manual RPM download.
  • How to verify, manage, and troubleshoot your EPEL setup.
  • Best practices for using EPEL in secure and production-ready environments.

By following these steps, you ensure that your RHEL 10 or CentOS 10 system is ready for modern workloads and agile development needs. EPEL brings the flexibility of open-source to the rigid reliability of enterprise Linux — making it a must-have tool in your system administration toolkit.

Did you find this article helpful? Your feedback is invaluable to us! Feel free to share this post with those who may benefit, and let us know your thoughts in the comments section below.


👉 Related Posts
Install EPEL
Commands
Install EPEL on Linux

In this article, we will guide you through the process of installing EPEL on various versions of RHEL and CentOS. Table of Contents Introduction The

Read More »

Leave a Reply

Your email address will not be published. Required fields are marked *