Hi there!
By default dnf is excruciatingly slow, at least in comparison to pacman and apk. The slowness of installing and updating packages was my biggest shock when coming to fedora, in a bad way. I wasn’t aware it was possible to tweak this behaviour until recently, and I’ve been using Fedora for more than half a year now. It’s been said the current dnf config is better for / protects low bandwidth users in countries with few or no mirrors.
Instead of providing all users with a slow package management experience out of the box, I suggest we implement logic which adjusts dnf.conf
according to a few criteria.
If
-
The user is connected to a high throughput/bandwidth network.
-
The connection is established in a country where mirrors have good capacity.
-
The network connection is classified as “not rate limited”
-
/etc/dnf/dnf.conf
hasn’t been user edited.
Then set the following parameters in /etc/dnf/dnf.conf
:
max_parallel_downloads=10
fastestmirror=True
If the criteria aren’t met, no changes are made to dnf.conf
.
This should provide a big lift in UX for users who have great internet connection but aren’t comfortable editing system configuration files, and should provide no downside for other users.
Your thoughts?