Fixed dnf5 config-manager addrepo command syntax

I updated the dnf5 syntax from 'dnf config-manager addrepo --from-repofile=<URL>' to 'dnf config-manager addrepo --from-repofile <URL>'
This commit is contained in:
Jeffstein 2026-01-12 19:51:47 -08:00 committed by GitHub
parent 231a83d76a
commit 1283c994ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -594,7 +594,8 @@ if ! [ -x "$(command -v docker)" ]; then
"centos" | "fedora" | "rhel")
if [ -x "$(command -v dnf5)" ]; then
# dnf5 is available
dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/$OS_TYPE/docker-ce.repo --overwrite >/dev/null 2>&1
dnf config-manager addrepo --from-repofile https://download.docker.com/linux/$OS_TYPE/docker-ce.repo
--overwrite >/dev/null 2>&1
else
# dnf5 is not available, use dnf
dnf config-manager --add-repo=https://download.docker.com/linux/$OS_TYPE/docker-ce.repo >/dev/null 2>&1