Skip to content

Commit

Permalink
Update 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 a0b72cd commit c373a2f
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions admin/linux/fedora_dnf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ systemctl disable --now systemd-oomd

Now you are stuck in dnf limbo. How to get out of it with less effort as possible?

### Try 0
## Try 0

If you can do this without an error then you are on a good way:

```shell
dnf -y remove --duplicates
```

### Try 1
## Try 1

Well, if try 0 resulted in conflicts, we can try to solve them semi-autotamic:

Expand All @@ -32,7 +32,7 @@ cat error.log | awk -F 'from install of|conflicts with file from package' '{prin
dnf -y remove --duplicates 2> error.log
```

### Try 2
## Try 2

We end up here if errors after try 1 still remained:

Expand Down Expand Up @@ -79,4 +79,32 @@ Now we should be able to do this:
dnf -y remove --duplicates
```

## Finalize

Now we can finalize the repair with:

```shell
yum -y update --best --allowerasing --skip-broken
```

or

```shell
yum -y --enablerepo=* update --best --allowerasing --skip-broken
```

Depending on if you want to include other non-default repos from your repo-list.

## Proteced packages

If you get complaints about protected system packages, you can disable this protection by:

```shell
mv /etc/dnf/protected.d /etc/dnf/protected.d_xxx
```

However, you should restore the protection later:

```shell
mv /etc/dnf/protected.d_xxx /etc/dnf/protected.d
```

0 comments on commit c373a2f

Please sign in to comment.