启用EPEL仓库

EL9

CentOS Stream 9

dnf config-manager --set-enabled crb
dnf install epel-release epel-next-release

RHEL 9

subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

AlmaLinux 9, Rocky Linux 9

dnf config-manager --set-enabled crb
dnf install epel-release

EL8

CentOS Stream 8

dnf config-manager --set-enabled powertools
dnf install epel-release epel-next-release

RHEL 8

subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

AlmaLinux 8, Rocky Linux 8

dnf config-manager --set-enabled powertools
dnf install epel-release

EL7

RHEL 7

subscription-manager repos --enable rhel-*-optional-rpms \
                           --enable rhel-*-extras-rpms \
                           --enable rhel-ha-for-rhel-*-server-rpms
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

CentOS 7

yum install epel-release