Yum supports to set "costs" for a repository. It can be used to prioritize one repository over another. dnf doesn't seem to support this. I have a local mirror of a remote repo, both consisting the same files, but my local repo has lower costs (than the remote) configured in the repo file and thus should be used instead of the remote (which dnf tried to use).
Hi, did you consider disabling the remote repo? This is the kind of feature that has little value but increases complexity all over the stack.
I don't think it has little value. When you have a layered product, based on RHEL, you'll have an additional repository. There might be parts of that layered product also available on EPEL. Since you can not simply remove those parts from there, you still want to have your additional repository preferred. We have this situation eg. for OpenStack When switching from yum to dnf, this will break.
Let's keep it in the backlog then.
FYI: libsolv supports something called "subpriorities" for that reason, so you probably just have to connect them with the repository costs.
(In reply to Michael Schröder from comment #4) > FYI: libsolv supports something called "subpriorities" for that reason, so > you probably just have to connect them with the repository costs. All right, very nice to hear. This gives this bug a lot better chances.
I'm having this issue on Fedora 19 too: - dnf-0.3.10-1.giteb9dddb.fc19.noarch.rpm - hawkey-0.3.16-2.git1e5a593.fc19.x86_64.rpm - libsolv-0.3.0-5.git228d412.fc19.x86_64.rpm
fixed in 106fa375b74d4053b726a8b65001fdf9bb950fbe on master
dnf-0.4.2-1.gitc1716d7.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/dnf-0.4.2-1.gitc1716d7.fc20
Package dnf-0.4.2-1.gitc1716d7.fc20, librepo-1.2.0-1.fc20, hawkey-0.4.2-1.git4c51f65.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-0.4.2-1.gitc1716d7.fc20 librepo-1.2.0-1.fc20 hawkey-0.4.2-1.git4c51f65.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-18123/librepo-1.2.0-1.fc20,hawkey-0.4.2-1.git4c51f65.fc20,dnf-0.4.2-1.gitc1716d7.fc20 then log in and leave karma (feedback).
dnf-0.4.2-1.gitc1716d7.fc20, librepo-1.2.0-1.fc20, hawkey-0.4.2-1.git4c51f65.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.