How do disable bad mirrors in DNF?

Hi! I live in Russia and the bigger mirror with high speed for me is Yandex (Russian big tech company) mirror.

I don’t know why, but in the latest time (for a month) I have issues with this mirror.

Status code 404 is common for Yandex mirror in latest time so I need to use --setopt=fastestmirror=1 to make my installation/updating quickly without waiting Yandex mirror responding. I want to know how to disable this mirror. Also I want to know why this problem in effect for one month and it still not fixed.


I think your best bet is to use the fastestmirror plugin and configure it to always run by default.

# Install if not already present
sudo dnf install dnf-plugin-fastestmirror

# Enable in dnf.conf
echo "fastestmirror=1" | sudo tee -a /etc/dnf/dnf.conf