dnf5
dnf5 copied to clipboard
dnf [options] remove --duplicates
Removes older versions of duplicate packages. To ensure the integrity of the system it reinstalls the newest package. In some cases the command cannot resolve conflicts. In such cases the dnf shell command with remove --duplicates and upgrade dnf-shell sub-commands could help.
An example of situation where remove --duplicates
fails to resolve conflicts: https://bugzilla.redhat.com/show_bug.cgi?id=2271419
dnf remove --duplicates
is also mentioned at https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/.