無法在 RHEL8.1 上新增 epel 儲存庫

無法在 RHEL8.1 上新增 epel 儲存庫

我無法安裝新增 epel 儲存庫。我執行了以下操作,沒有錯誤:

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

# ARCH=$( /bin/arch )
    subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms"

現在,如果我列出帶有 的儲存庫dnf repolistepel則根本不會列出。我哪裡錯了?

答案1

epel通常在安裝 RPM 時預設為啟用。如果由於某種原因沒有啟用,您需要啟用它,但您運行的命令啟用了codeready-builder儲存庫。

運行此命令以啟用epel

dnf config-manager --enable epel

然後你可以運行dnf repolist來查看epel列出的內容。

相關內容