fedora dnf boost
This commit is contained in:
+15
-2
@@ -78,13 +78,26 @@ fi
|
|||||||
##########################
|
##########################
|
||||||
# 1. Update and Enable Repos
|
# 1. Update and Enable Repos
|
||||||
##########################
|
##########################
|
||||||
|
say_cyan "Optimizing DNF for speed..."
|
||||||
|
|
||||||
|
# 1. Enable fastest mirror (lowest latency)
|
||||||
|
# 2. Increase parallel downloads (allows downloading multiple packages at once)
|
||||||
|
# 3. Set a minimum rate to drop slow mirrors automatically
|
||||||
|
sudo tee -a /etc/dnf/dnf.conf <<EOF
|
||||||
|
fastestmirror=True
|
||||||
|
max_parallel_downloads=25
|
||||||
|
minrate=100k
|
||||||
|
timeout=15
|
||||||
|
EOF
|
||||||
|
|
||||||
|
say_green "DNF optimized. Refreshing metadata..."
|
||||||
|
sudo dnf makecache --refresh
|
||||||
|
|
||||||
say_cyan "Enabling RPM Fusion repositories for Fedora $(rpm -E %fedora)..."
|
say_cyan "Enabling RPM Fusion repositories for Fedora $(rpm -E %fedora)..."
|
||||||
|
|
||||||
# Define the version variable for readability
|
# Define the version variable for readability
|
||||||
FEDORA_VER=$(rpm -E %fedora)
|
FEDORA_VER=$(rpm -E %fedora)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
say_yellow "Checking for updates and sources..."
|
say_yellow "Checking for updates and sources..."
|
||||||
sudo dnf check-update || true
|
sudo dnf check-update || true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user