I've upgraded to Fedora 42 just now, following the instructions from the documentation: https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/ I'm now going through the post-upgrade tasks from that documentation. In the section "Clean-up old packages": https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/#sect-clean-up-old-packages it recommends running these two commands: sudo dnf repoquery --duplicates sudo dnf remove --duplicates The latter command yields the following output: Unknown argument "--duplicates" for command "remove". Add "--help" for more information about the arguments. The argument is available for commands: check, repoquery. (It has to be placed after the command.) I think the documentation needs to be updated to reflect that the recommended dnf command isn't available anymore, and an alternative should be added to the documentation. Reproducible: Always
*** This bug has been marked as a duplicate of bug 2351369 ***