yum/dnfにEPELリポジトリを追加する Rocky Linux/CentOS 8, 7

Rocky Linux・CentOS標準のyumリポジトリに加えて豊富なパッケージを利用できるEPELリポジトリを追加する方法を説明します。

Rocky Linux/CentOS 8の場合

Rocky Linux/CentOS 8の場合は、EPELパッケージによっては依存するものがあるため、powertoolsリポジトリを有効にしておくことが推奨されています。

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

以前のバージョンではリポジトリ名としてPowerToolsを指定する必要があります。

Error: No matching repo to modify: powertools
# dnf config-manager --set-enabled PowerTools

CentOS 7の場合

# yum install epel-release