
我無法安裝新增 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 repolist
,epel
則根本不會列出。我哪裡錯了?
答案1
epel
通常在安裝 RPM 時預設為啟用。如果由於某種原因沒有啟用,您需要啟用它,但您運行的命令啟用了codeready-builder
儲存庫。
運行此命令以啟用epel
:
dnf config-manager --enable epel
然後你可以運行dnf repolist
來查看epel
列出的內容。