From b93eba253af1aba85581d6ffd0beb2e7947881aa Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 26 Sep 2023 15:43:53 -0700 Subject: [PATCH] Update dnf config --- Fedora-Workstation-38.sh | 4 ++-- RHEL-Server-9.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Fedora-Workstation-38.sh b/Fedora-Workstation-38.sh index 69cbaf5..0d916a7 100644 --- a/Fedora-Workstation-38.sh +++ b/Fedora-Workstation-38.sh @@ -76,8 +76,8 @@ org/gnome/desktop/media-handling/automount-open' | sudo tee /etc/dconf/db/local. sudo dconf update # Speed up DNF -echo 'fastestmirror=1' | sudo tee -a /etc/dnf/dnf.conf -echo 'countme=false' | sudo tee -a /etc/dnf/dnf.conf +echo -e 'fastestmirror=1\nmax_parallel_downloads=10\ndeltarpm=False\ndefaultyes=True\ninstall_weak_deps=False\ncountme=False' | sudo tee -a /etc/dnf/dnf.conf +sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/* # Update packages and firmware sudo dnf upgrade -y diff --git a/RHEL-Server-9.sh b/RHEL-Server-9.sh index ad71540..a3b2946 100644 --- a/RHEL-Server-9.sh +++ b/RHEL-Server-9.sh @@ -57,6 +57,10 @@ sudo curl https://gitlab.com/divested/brace/-/raw/master/brace/usr/lib/systemd/s sudo systemctl daemon-reload sudo systemctl restart irqbalance +# Setup dnf +echo -e 'fastestmirror=1\nmax_parallel_downloads=10\ndeltarpm=False\ndefaultyes=True\ninstall_weak_deps=False\ncountme=False' | sudo tee -a /etc/dnf/dnf.conf +sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/* + # Setup unbound sudo dnf install unbound -y