Ask Your Question

Why is dnf so slow?

asked 2018-01-28 22:56:14 -0500

cpetepf gravatar image

The other day I ran the command on fedora27:

dnf search vnc

It took 20 minutes to complete. It was downloading something checking repo.

edit retag flag offensive close merge delete



DNF depends on your Internet speed but also the mirror speed at where it is connected.

aeperezt gravatar imageaeperezt ( 2018-01-28 23:25:30 -0500 )edit

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 a dnf update will help you to fetch metadata from a different (hopefully faster) mirror server.

florian gravatar imageflorian ( 2018-01-29 16:35:35 -0500 )edit

I have the same problem DNF is very slow

zezolock gravatar imagezezolock ( 2018-12-23 02:07:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-01-29 03:14:01 -0500

Glenn gravatar image

I add the following three lines to the bottom of my /etc/dnf/dnf.conf


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.

edit flag offensive delete link more



deltarpm=false will actually result in more traffic. So, with a slow internet connection, I would advise not to disable deltarpm

florian gravatar imageflorian ( 2018-01-29 16:32:00 -0500 )edit

Question Tools

1 follower


Asked: 2018-01-28 22:56:14 -0500

Seen: 5,957 times

Last updated: Jan 29 '18