How to reinstall Yum / DNF completely?
My DNF is very broken and VERY, VERY, VERY slow. I don't know what's the cause, but when I try to run dnf install
or dnf update
I must wait a long time until it print something in the Terminal (> 1 min).
Quite often I can't install "Important OS updates" and when I try to run DNF commands I got erros that abort the current dnf operation, sometimes.
So, this doesn't necessarily mean that dnf is broken; it could be a latency issue with the mirror being selected, for example. Have you tried enabling the fastestmirror option in /etc/dnf/dnf.conf? (See my answer in that question for the instructions). If that doesn't help, we can try some more troubleshooting before attempting to reinstall your package manager.
This didn't worked at all, my DNF still very slow. It's fast to download and fetch repositories and packages, but right after I digit
dnf <something>
and press Enter, it looks like DNF is waiting for something else or frozen for some reason. It takes very long time until it starts to fetch repositories, but later is very fast.