As I understand, Fedora's dnf uses metalinks by default. It downloads the metalink file and then selects the fastest mirror from the list. This is great for most users, but it would be beneficial to have the option to filter mirrors by location/domain. For example, this would allow users to exclude mirrors known to be out of sync or slow.
From a configuration standpoint, adding options in the main section of /etc/dnf/dnf.conf would be ideal, as users want to control all repositories at once. An example configuration is shown below:
[main]
gpgcheck=True
...
metalink_exclude_domain=^mirror1\.example\.com$
# XX is an artificial country code for testing
metalink_exclude_location=^XX$
To achieve this functionality, librepo would need to be updated to allow filtering by location/domain as well.
As I understand, Fedora's dnf uses metalinks by default. It downloads the metalink file and then selects the fastest mirror from the list. This is great for most users, but it would be beneficial to have the option to filter mirrors by location/domain. For example, this would allow users to exclude mirrors known to be out of sync or slow.
From a configuration standpoint, adding options in the
mainsection of/etc/dnf/dnf.confwould be ideal, as users want to control all repositories at once. An example configuration is shown below:To achieve this functionality,
librepowould need to be updated to allow filtering by location/domain as well.