Description of problem:
The behavior of multiple dnf commands doesn't match the intent. This is described in detail in the upstream pull request to fix it.
The same contributor that submitted this to dnf also submitted a backport for CentOS Stream.
Can this backport be pulled into a future dnf build that we can export to CentOS Stream?
Version-Release number of selected component (if applicable):
I have created a PR with some tests: https://github.com/rpm-software-management/ci-dnf-stack/pull/838
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (yum bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.