From 808977f10bbf54f6c2389478a45656c603eedf69 Mon Sep 17 00:00:00 2001 From: Tommy Date: Wed, 25 Dec 2024 05:59:51 -0700 Subject: [PATCH] Update dnf-config commands to dnf5 --- fedora-gnome/hardened-chromium.sh | 2 +- fedora-gnome/ivpn.sh | 2 +- fedora-gnome/media.sh | 2 +- fedora-gnome/mullvad-browser.sh | 4 ++-- fedora-gnome/mullvad.sh | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fedora-gnome/hardened-chromium.sh b/fedora-gnome/hardened-chromium.sh index 23beafd..807a978 100644 --- a/fedora-gnome/hardened-chromium.sh +++ b/fedora-gnome/hardened-chromium.sh @@ -25,7 +25,7 @@ download() { } sudo https_proxy=127.0.0.1:8082 dnf copr enable secureblue/hardened-chromium -y -sudo dnf config-manager --enable fedora-cisco-openh264 rpmfusion-free rpmfusion-free-updates rpmfusion-nonfree rpmfusion-nonfree-updates +sudo dnf config-manager setopt fedora-cisco-openh264.enabled=1 rpmfusion-free.enabled=1 rpmfusion-free-updates.enabled=1 rpmfusion-nonfree.enabled=1 rpmfusion-nonfree-updates.enabled=1 sudo dnf install -y ffmpeg hardened-chromium sudo dnf update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin diff --git a/fedora-gnome/ivpn.sh b/fedora-gnome/ivpn.sh index 97ad5bb..895f4bc 100644 --- a/fedora-gnome/ivpn.sh +++ b/fedora-gnome/ivpn.sh @@ -24,7 +24,7 @@ download() { unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | sudo tee "${2}" > /dev/null } -sudo dnf config-manager --add-repo https://repo.ivpn.net/stable/fedora/generic/ivpn.repo +sudo dnf config-manager addrepo --from-repofile=https://repo.ivpn.net/stable/fedora/generic/ivpn.repo sudo dnf install -y ivpn-ui umask 022 diff --git a/fedora-gnome/media.sh b/fedora-gnome/media.sh index 0b318e6..8ceb0b2 100644 --- a/fedora-gnome/media.sh +++ b/fedora-gnome/media.sh @@ -24,6 +24,6 @@ download() { unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | sudo tee "${2}" > /dev/null } -sudo dnf config-manager --enable fedora-cisco-openh264 rpmfusion-free rpmfusion-free-updates rpmfusion-nonfree rpmfusion-nonfree-updates +sudo dnf config-manager setopt fedora-cisco-openh264.enabled=1 rpmfusion-free.enabled=1 rpmfusion-free-updates.enabled=1 rpmfusion-nonfree.enabled=1 rpmfusion-nonfree-updates.enabled=1 sudo dnf upgrade -y sudo dnf install -y ffmpeg yt-dlp \ No newline at end of file diff --git a/fedora-gnome/mullvad-browser.sh b/fedora-gnome/mullvad-browser.sh index ad17d1b..e183a85 100644 --- a/fedora-gnome/mullvad-browser.sh +++ b/fedora-gnome/mullvad-browser.sh @@ -24,8 +24,8 @@ download() { unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | sudo tee "${2}" > /dev/null } -sudo dnf config-manager --add-repo https://repository.mullvad.net/rpm/stable/mullvad.repo -sudo dnf config-manager --enable fedora-cisco-openh264 rpmfusion-free rpmfusion-free-updates rpmfusion-nonfree rpmfusion-nonfree-updates +sudo dnf config-manager addrepo --from-repofile=https://repository.mullvad.net/rpm/stable/mullvad.repo +sudo dnf config-manager setopt fedora-cisco-openh264.enabled=1 rpmfusion-free.enabled=1 rpmfusion-free-updates.enabled=1 rpmfusion-nonfree.enabled=1 rpmfusion-nonfree-updates.enabled=1 # Install the package sudo dnf install -y ffmpeg mullvad-browser diff --git a/fedora-gnome/mullvad.sh b/fedora-gnome/mullvad.sh index 61d3432..fd98391 100644 --- a/fedora-gnome/mullvad.sh +++ b/fedora-gnome/mullvad.sh @@ -24,7 +24,7 @@ download() { unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | sudo tee "${2}" > /dev/null } -sudo dnf config-manager --add-repo https://repository.mullvad.net/rpm/stable/mullvad.repo +sudo dnf config-manager addrepo --from-repofile=https://repository.mullvad.net/rpm/stable/mullvad.repo sudo dnf install -y mullvad-vpn umask 022