Bug 2363666 - dnf5 doesn't support the remove --duplicates command recommended in post upgrade tasks
Summary: dnf5 doesn't support the remove --duplicates command recommended in post upgr...
Keywords:
Status: CLOSED DUPLICATE of bug 2351369
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: rpm-software-management
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-02 14:28 UTC by Timur Kristóf
Modified: 2025-05-02 15:40 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-05-02 15:40:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Timur Kristóf 2025-05-02 14:28:41 UTC
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

Comment 1 Petr Pisar 2025-05-02 15:40:25 UTC

*** This bug has been marked as a duplicate of bug 2351369 ***


Note You need to log in before you can comment on or make changes to this bug.