dnf:如何判断是什么导致了依赖关系的破坏?

dnf:如何判断是什么导致了依赖关系的破坏?

有时,在执行 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.

相关内容