From 090ae686607197b85d90799dbb44720c9c6a91b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 31 Aug 2023 12:52:33 +0200 Subject: [PATCH] How to remove duplicate packages --- modules/ROOT/pages/upgrading-fedora-offline.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/ROOT/pages/upgrading-fedora-offline.adoc b/modules/ROOT/pages/upgrading-fedora-offline.adoc index 4aa7d6b..b8b5e0e 100644 --- a/modules/ROOT/pages/upgrading-fedora-offline.adoc +++ b/modules/ROOT/pages/upgrading-fedora-offline.adoc @@ -191,6 +191,13 @@ You can see duplicate packages (packages with multiple versions installed) with: sudo dnf repoquery --duplicates ---- +And you can remove them with: + +[source,bash] +---- +sudo dnf remove --duplicates +---- + [NOTE] ==== Run `sudo dnf upgrade` first, as this list is only valid if you have a fully updated system.