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
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. - In
dnf5,-bdoesn't exist, but--bestdoes.RokeJulianLockhart– RokeJulianLockhart2024-11-02 11:26:24 +00:00Commented Nov 2, 2024 at 11:26