Skip to main content

CentOS Stream 10: Add Additional Repositories

How to add EPEL and Remi repositories on CentOS Stream 10 to install additional software packages not included in the default repos.

May 25, 2026 5 min read
centoscentos-stream-10linuxserverinitial-settingsrepositoriesepelremipackage-management

Add some useful external repositories to install additional software.

Add EPEL Repository

EPEL (Extra Packages for Enterprise Linux) provides packages built specifically for RHEL/CentOS by the Fedora project.

dnf -y install epel-release

The repository file is located at /etc/yum.repos.d/epel.repo:

[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever
gpgcheck=1
enabled=1
priority=10

To temporarily enable EPEL if it is disabled:

dnf --enablerepo=epel install [Package]

Add Remi Repository

Remi's RPM repository provides useful packages like the latest PHP versions.

dnf -y install https://rpms.remirepo.net/enterprise/remi-release-10.rpm

Only remi-safe and remi-modular are enabled by default:

grep 'enabled=1' /etc/yum.repos.d/remi-*

Output:

/etc/yum.repos.d/remi-modular.repo:enabled=1
/etc/yum.repos.d/remi-safe.repo:enabled=1

Configure priority in /etc/yum.repos.d/remi-safe.repo:

[remi-safe]
name=Safe Remi's RPM repository for Enterprise Linux $releasever - $basearch
mirrorlist=http://cdn.remirepo.net/enterprise/$releasever/safe/$basearch/mirror
enabled=1
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el$releasever

To temporarily enable Remi:

dnf --enablerepo=remi-safe install [Package]

The modular repository provides various PHP versions:

dnf --enablerepo=remi-modular --disablerepo=appstream module list
Remi's Modular repository for Enterprise Linux 10 - x86_64
Name      Stream   Profiles                    Summary
php       remi-8.0 common [d], devel, minimal  PHP scripting language
php       remi-8.1 common [d], devel, minimal  PHP scripting language
php       remi-8.2 common [d], devel, minimal  PHP scripting language
php       remi-8.3 common [d], devel, minimal  PHP scripting language
php       remi-8.4 common [d], devel, minimal  PHP scripting language