Why is dnf so slow?
The other day I ran the command on fedora27:
dnf search vnc
It took 20 minutes to complete. It was downloading something checking repo.
The other day I ran the command on fedora27:
dnf search vnc
It took 20 minutes to complete. It was downloading something checking repo.
I add the following three lines to the bottom of my /etc/dnf/dnf.conf
ip_resolve=4
keepcache=true
deltarpm=false
It seems to help quite a bit, although I'm not going to claim that it is the perfect solution for everyone. Also, if bandwidth or data caps are a concern you may not want to disable deltarpm.
Asked: 2018-01-28 22:56:14 -0500
Seen: 5,825 times
Last updated: Jan 29 '18
DNF depends on your Internet speed but also the mirror speed at where it is connected.
What probably happened was that dnf did refresh its database with metadata information. That may result in a download anywhere from 20-50 MB (depending on what repositories you have enabled) - and that may take 20 minutes if your connection to the server (mirror) is slow.
If you think your internet connection is actually not that slow,
dnf clean all
followed by adnf update
will help you to fetch metadata from a different (hopefully faster) mirror server.I have the same problem DNF is very slow