有时,在执行 a 时,dnf upgrade
我会被告知由于依赖关系损坏而跳过包。它会告诉我哪些包被跳过,但不会为什么他们被跳过了。我如何找出“为什么”?
答案1
使用相当不明显的--best
选项。来自手册页:
-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.