Description of problem: Disable installation of specific soft dependency chain. Although there is currently possible to "exclude=python-systemd-doc", this means to exclude such package forever. But I'd like to exclude the soft dependency only if it is pulled in by specific package, e.g. python3-systemd in this case. It is quite annoying that I need to exclude such package every time I am updating python3-systemd, but in other cases (I don't have better example in my hand right now) when it is recommended by other package, I might be interested to pull this package in. Version-Release number of selected component (if applicable): $ rpm -q dnf dnf-2.1.0_1-28g5145f58.fc27.noarch How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: The weak dependencies must be disabled again and again. Expected results: I'd like to be able to specify that if package A recommends package B, I'd like to always ignore such recommendation. But I might want to consider installation of B when package C recommends it. Additional info:
I am sorry Vit, but I have to disappoint you. I have tried to fix the issue in https://github.com/rpm-software-management/dnf/pull/774, but during discussion it appears a problem with too difficult implementation to do selective handling of weak-deps. Unfortunately your request is even more specific that original one in https://bugzilla.redhat.com/show_bug.cgi?id=1278196. Therefore I have to to close it as deferred, therefore in future we can reopen it when we will have possibilities to solve such a complex request.