Description of problem: The error message users get in case they try to install excluded package could be better. Especially for API users and for CLI users in case the local rpm is used. Steps to Reproduce: 1. dnf install --exclude=acpi acpi-1.7-15.fc33.x86_64.rpm Actual results: # dnf install --exclude=acpi acpi-1.7-15.fc33.x86_64.rpm No match for argument: acpi-1.7-15.fc33.x86_64.rpm Error: Unable to find a match Expected results: # dnf install --exclude=acpi acpi-1.7-15.fc33.x86_64.rpm No match for argument: acpi-1.7-15.fc33.x86_64.rpm Error: Unable to find a match (all matches filtered out by exclude filtering) Additional info: It actually works fine for repository packages: # dnf install --exclude=acpi acpi All matches were filtered out by exclude filtering for argument: acpi Error: Unable to find a match: acpi Related bug: https://bugzilla.redhat.com/show_bug.cgi?id=1955309 Related ansible issue: https://github.com/ansible/ansible/issues/74504
I think that the issue is resolved by DNF5. Shall we close the issue?
@jmracek indeed it is, thanks for remainder.