From 9dbb4a3dd47b6c5f62ce0a1b434c3aac52f4738e Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 10 Nov 2023 16:43:49 -0700 Subject: [PATCH] Split out dnf config Signed-off-by: Tommy --- Fedora-Workstation-38.sh | 2 +- RHEL-Server-9.sh | 2 +- etc/dnf/dnf.conf | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 etc/dnf/dnf.conf diff --git a/Fedora-Workstation-38.sh b/Fedora-Workstation-38.sh index ad051be..cafdaaa 100644 --- a/Fedora-Workstation-38.sh +++ b/Fedora-Workstation-38.sh @@ -96,7 +96,7 @@ sudo dconf update echo -e '[zram0]\nzram-fraction = 1\nmax-zram-size = 8192\ncompression-algorithm = zstd' | sudo tee /etc/systemd/zram-generator.conf # Speed up DNF -echo -e 'max_parallel_downloads=10\ndeltarpm=False\ndefaultyes=True\ninstall_weak_deps=False\ncountme=False' | sudo tee -a /etc/dnf/dnf.conf +sudo curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dnf/dnf.conf -o /etc/dnf/dnf.conf sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/* # Update packages and firmware diff --git a/RHEL-Server-9.sh b/RHEL-Server-9.sh index 99d3724..d58807d 100644 --- a/RHEL-Server-9.sh +++ b/RHEL-Server-9.sh @@ -66,7 +66,7 @@ sudo systemctl daemon-reload sudo systemctl restart irqbalance # Setup dnf -echo -e 'max_parallel_downloads=10\ndeltarpm=False\ndefaultyes=True\ninstall_weak_deps=False\ncountme=False' | sudo tee -a /etc/dnf/dnf.conf +sudo curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dnf/dnf.conf -o /etc/dnf/dnf.conf sudo sed -i 's/^metalink=.*/&\&protocol=https/g' /etc/yum.repos.d/* # Setup unbound diff --git a/etc/dnf/dnf.conf b/etc/dnf/dnf.conf new file mode 100644 index 0000000..40883fc --- /dev/null +++ b/etc/dnf/dnf.conf @@ -0,0 +1,5 @@ +max_parallel_downloads=10 +deltarpm=False +defaultyes=True +install_weak_deps=False +countme=False \ No newline at end of file