-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# When dnf fails. | ||
|
||
## Top | ||
|
||
Questions to [David Rotermund](mailto:davrot@uni-bremen.de) | ||
|
||
Let us assume the dnf update inbetween. You lost the remote connection to the computer where the update was running or systemd oom killed the dnf task. | ||
|
||
Now you are stuck in dnf limbo. How to get out of it with less effort as possible? | ||
|
||
|
||
### Try 1 | ||
|
||
```shell | ||
dnf -y remove --duplicates 2> error.log | ||
cat error.log | awk -F 'from install of|conflicts with file from package' '{print $2}' | sort -u | awk 'NF' | sed s/"^ "/"dnf -y reinstall "/g | sh | ||
``` | ||
|
||
### Try 2 | ||
|
||
```shell | ||
dnf -y remove --duplicates 2> error.log | ||
cat error.log | awk -F 'from install of|conflicts with file from package' '{print $2}' | sort -u | awk 'NF' | ||
``` |