4

Sometimes when doing a dnf upgrade I'll be told that it's skipping packages because of broken dependencies. It will tell me which packages are being skipped, but not why they're being skipped. How do I found out the "why"?

1 Answer 1

4

Use the rather non-obvious --best option. From the man page:

 -b, --best Try the best available package versions in transactions. Specif‐ ically during dnf upgrade, which by default skips over updates that can not be installed for dependency reasons, the switch forces DNF to only consider the latest packages. When running into packages with broken dependencies, DNF will fail giving a reason why the latest version can not be installed. 
1
  • In dnf5, -b doesn't exist, but --best does. Commented Nov 2, 2024 at 11:26

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.