Skip to content

Allow filtering metalinks by location/domain #1483

@bc-lee

Description

@bc-lee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: LOWRFERequest For Enhancement (as opposed to a bug)TriagedSomeone on the DNF 5 team has read the issue and determined the next steps to take

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions