如何强制删除 dnf 错误地认为许多包依赖的包?

如何强制删除 dnf 错误地认为许多包依赖的包?

我正在尝试使用 Fedora 37 工作站上的软件包列表进行一些清理dnf。我安装了许多用于评估目的的软件包,昨天我对 Fedora 36->37 的升级导致部署了 10422 个软件包...

我想删除

cgnslib-common-4.3.0-3.fc37.noarch
cgnslib-4.3.0-3.fc37.x86_64

但是当我尝试继续时,sudo dnf remove cgnslib我得到:

Error: 
Problem: The operation would result in removing the following protected packages: gnome-shell
(try to add '--skip-broken' to skip uninstallable packages)

但与(它是一组用于计算流体动力学(CFD)分析数据的库和工具 -代表计算流体动力学通用符号系统)cgnslib完全无关。gnome-shellcgns

我怎样才能强制删除该包?

sudo rpm --rebuilddb我之前已经尝试过remove。如果我查找包反向依赖项,我看不到与 gnome-shell 相关的任何内容:

$ dnf repoquery --whatrequires cgnslib                                       
cgnslib-devel-0:4.3.0-2.fc37.i686
cgnslib-devel-0:4.3.0-2.fc37.x86_64
cgnslib-devel-0:4.3.0-3.fc37.i686
cgnslib-devel-0:4.3.0-3.fc37.x86_64
gmsh-libs-0:4.10.5-2.fc37.i686
gmsh-libs-0:4.10.5-2.fc37.x86_64
gmsh-libs-0:4.10.5-3.fc37.i686
gmsh-libs-0:4.10.5-3.fc37.x86_64
gmsh-mpich-libs-0:4.10.5-2.fc37.i686
gmsh-mpich-libs-0:4.10.5-2.fc37.x86_64
gmsh-mpich-libs-0:4.10.5-3.fc37.i686
gmsh-mpich-libs-0:4.10.5-3.fc37.x86_64
gmsh-openmpi-libs-0:4.10.5-2.fc37.i686
gmsh-openmpi-libs-0:4.10.5-2.fc37.x86_64
gmsh-openmpi-libs-0:4.10.5-3.fc37.i686
gmsh-openmpi-libs-0:4.10.5-3.fc37.x86_64
paraview-0:5.10.1-5.fc37.i686
paraview-0:5.10.1-5.fc37.x86_64
paraview-mpich-0:5.10.1-5.fc37.i686
paraview-mpich-0:5.10.1-5.fc37.x86_64
paraview-openmpi-0:5.10.1-5.fc37.i686
paraview-openmpi-0:5.10.1-5.fc37.x86_64
petsc-0:3.17.4-2.fc37.i686
petsc-0:3.17.4-2.fc37.x86_64
petsc-0:3.17.4-6.fc37.i686
petsc-0:3.17.4-6.fc37.x86_64
petsc-mpich-0:3.17.4-2.fc37.i686
petsc-mpich-0:3.17.4-2.fc37.x86_64
petsc-mpich-0:3.17.4-6.fc37.i686
petsc-mpich-0:3.17.4-6.fc37.x86_64
petsc-openmpi-0:3.17.4-2.fc37.i686
petsc-openmpi-0:3.17.4-2.fc37.x86_64
petsc-openmpi-0:3.17.4-6.fc37.i686
petsc-openmpi-0:3.17.4-6.fc37.x86_64
petsc64-0:3.17.4-2.fc37.x86_64
petsc64-0:3.17.4-6.fc37.x86_64
vtk-0:9.1.0-17.fc37.i686
vtk-0:9.1.0-17.fc37.x86_64
vtk-mpich-0:9.1.0-17.fc37.i686
vtk-mpich-0:9.1.0-17.fc37.x86_64
vtk-openmpi-0:9.1.0-17.fc37.i686
vtk-openmpi-0:9.1.0-17.fc37.x86_64```

相关内容