Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
  • Loading branch information
davrot authored Mar 9, 2024
1 parent d0b6187 commit f6db7c3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions admin/linux/fedora_dnf/README.md
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'
```

0 comments on commit f6db7c3

Please sign in to comment.