Linux / 电脑技术 · 2021年11月29日 0

epel-release 安装

You may retrieve signed binary configuration files from one the above two links (varying by the major release number of the installation target machine). They may be automatically installed by root thus:

  • RHEL/CentOS 7:

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

  • on RHEL 7 it is recommended to also enable the optional, extras, and HA repositories since EPEL packages may depend on packages from these repositories:

# subscription-manager repos --enable "rhel--optional-rpms" --enable "rhel--extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms"

  • RHEL/CentOS 8:

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

  • CentOS Stream 8:

# dnf install epel-release

  • on RHEL 8 it is required to also enable the codeready-builder-for-rhel-8-*-rpms repository since EPEL packages may depend on packages from it:

# subscription-manager repos --enable "codeready-builder-for-rhel-8-$(arch)-rpms"

  • on CentOS 8 it is recommended to also enable the powertools repository since EPEL packages may depend on packages from it:

# dnf config-manager --set-enabled powertools

https://docs.fedoraproject.org/en-US/epel/