Description of problem: "-1" in "--latest-limit -1" seems to be invalid argument with dnf 2.0, something that used to work with dnf 1.x for removing duplicate packages. Version-Release number of selected component (if applicable): $ rpm -q dnf dnf-2.4.1-1.fc26.noarch dnf-2.5.1-1.fc26.noarch How reproducible: Always Steps to Reproduce: 1. $ sudo dnf repoquery --duplicated --latest-limit -1 Actual results: Command line error: argument --latest-limit: expected one argument Expected results: Additional info: This system failed to upgrade most likely because libdb issue RHBZ#1465292 .
*** This bug has been marked as a duplicate of bug 1446641 ***
Thank you. Workarounds mentioned in other bug reports works.
I am sorry but the problem here was solved by providing a workaround including examples in documentation. The other solution cannot be provided with Python argparser. *** This bug has been marked as a duplicate of bug 1446641 ***