From 9faf30dc15bbdd69fdb2830dca6a7170422deaa9 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 21 Nov 2019 15:59:50 +0000 Subject: [PATCH 1/2] Add information on cleaning old symlinks in /usr in dnf-system-upgrade.adoc Add information on cleaning old symlinks in /usr in dnf-system-upgrade.adoc. Fedora includes the symlinks utility, so it is easy to clean the old cruft. --- modules/ROOT/pages/dnf-system-upgrade.adoc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/ROOT/pages/dnf-system-upgrade.adoc b/modules/ROOT/pages/dnf-system-upgrade.adoc index dd3f8a5..640b744 100644 --- a/modules/ROOT/pages/dnf-system-upgrade.adoc +++ b/modules/ROOT/pages/dnf-system-upgrade.adoc @@ -172,6 +172,23 @@ However, that doesn't mean that the package is not useful or that you don't use *Only remove what you are sure you don't need*. ==== +[[sect-clean-up-old-symlinks]] +=== Clean-Up Old Symlinks + +There may be some dangling symlinks after an upgrade. You can clean the danling links by installing the symlinks utility and deleteing the old links. + +[source,bash] +---- +sudo dnf install symlinks +---- + +Once the utility is installed you can run it like shown below. `-r` means recursive, and `-d` means delete. + +[source,bash] +---- +sudo symlinks -r -d /usr +---- + [[sect-resolving-post-upgrade-issues]] == Resolving Post-Upgrade Issues From 2a01d84d8edd31196b2eb5228f48e694edc09c71 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 21 Nov 2019 16:15:45 +0000 Subject: [PATCH 2/2] Add information on cleaning old symlinks in /usr in dnf-system-upgrade.adoc Add information on cleaning old symlinks in /usr in dnf-system-upgrade.adoc. Fedora includes the symlinks utility, so it is easy to clean the old cruft. --- modules/ROOT/pages/dnf-system-upgrade.adoc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/ROOT/pages/dnf-system-upgrade.adoc b/modules/ROOT/pages/dnf-system-upgrade.adoc index 640b744..e172735 100644 --- a/modules/ROOT/pages/dnf-system-upgrade.adoc +++ b/modules/ROOT/pages/dnf-system-upgrade.adoc @@ -175,15 +175,21 @@ However, that doesn't mean that the package is not useful or that you don't use [[sect-clean-up-old-symlinks]] === Clean-Up Old Symlinks -There may be some dangling symlinks after an upgrade. You can clean the danling links by installing the symlinks utility and deleteing the old links. +There may be some dangling symlinks in the filesystem after an upgrade. You can clean the dangling links by installing the symlinks utility and deleteing the old links. [source,bash] ---- sudo dnf install symlinks ---- -Once the utility is installed you can run it like shown below. `-r` means recursive, and `-d` means delete. +Once the utility is installed you can audit for broken symlinks like shown below. `-r` means recursive. +[source,bash] +---- +sudo symlinks -r /usr | grep dangling +---- + +After you verify the list of broken symlinks you can delete them like shown below. `-d` means delete. [source,bash] ---- sudo symlinks -r -d /usr