Very slow download speeds with DNF

,

Hi everyone, I’m new to Fedora, coming from Ubuntu, and was just trying to install some packages, but I’m ending up waiting a lot of time every time I want to install a package
The download speed on every package and even when just updating the data from the repositories is stuck for me between 10-200kbps for me at best… :confused:
My internet speed is 500mbps, so I’m really confused

After searching about it online, I found that this was actually a very common issue, but a lot of people said that it was fixed with DNF 5, which comes by default with Fedora 41 that I installed

I thought that maybe this is because maybe it’s using a bad mirror, but I couldn’t really figure out how to change it
I read about the fastest mirror option but also saw that it doesn’t actually do anything?

Does anyone have any idea how can I speed up downloads?
Thanks in advance for the help! :slight_smile:

The new url for mirror manager is: https://mirrormanager.fedoraproject.org/

This post describes how to modify the repository files:

You could try static urls in various locations to see if it improves.

After searching about it online, I found that this was actually a very common issue, but a lot of people said that it was fixed with DNF 5, which comes by default with Fedora 41 that I installed

dnf5 did improve processing speed, but the mirror and your bandwitdth are going to determine the download speed.

Welcome to :fedora:

1 Like

I have fastestmirrors=true in my /etc/dnf/dnf.conf file. Seems to work great for me. Also a big fan of max_parallel_downloads too.

Don’t do this and follow the advice below instead.

there could have been something wrong with your internet connection, or you incidentally hit a bad mirror.

try sudo dnf clean all, followed by another sudo dnf update - this should re-evaluate your fastestmirror. either let mirrormanager decide for you or use fastestmirror=True. Try both. (by the way, dnf or dnf5 shouldnt make a difference in download speed).

I’d leave /etc/dnf/dnf.conf alone and put your local changes in local dropin file: /etc/dnf/libdnf5.conf.d/80-local.conf For example if you wanted to override fastestmirrors=true then make the file contain:

[main]
fastestmirrors=true

See reference man dnf5.conf under the section

DROP-IN CONFIGURATION DIRECTORIES

1 Like

Looks like I’m not aware of the new way of doing things. I wondered why that file looked a little different in 41. I’ll edit my original post. Thanks for teaching me something new!

That should still work, but your settings may be overridden, when dnf5 decides to ship a new dnf.conf. That’s why you place your user-config in a drop-in directory.

So far, it has. Which is why I suggested it. haha I have a couple other tweaks I’ve added in there and I haven’t had any issues. But it’s also working the other way after changing it last night.

This solved the problem, thank you so much!
Downloading is blazing fast now :slight_smile:

2 Likes

Yes, that’s what I mean, if you edit the dnf.conf or other packaged config files, you’d at least want to run this command occasionally

sudo rpmconf -a

To find various package config files you’ve edited which have had a conflict due to an update