我正在尝试卸载qt
。我做了brew uninstall qt
,它卸载了5.9.0版本,但是它说:
4.8.7_2,5.8.0_1 2仍在安装中
我也想把它们删除。有办法用brew
卸载软件包的所有版本吗?提前感谢!
OS:Mac El Capitan
发布于 2017-06-20 02:57:18
brew uninstall --force qt
成功了
发布于 2020-01-12 11:49:41
brew uninstall qt@4.8.7_2 qt@5.8.0_1
这两种方法可能都会警告仍然存在依赖关系,例如在我的机器上:
$ brew uninstall qt
Error: Refusing to uninstall /usr/local/Cellar/qt/5.14.0
because it is required by gnuplot, octave, poppler and pyqt, which are currently installed.
You can override this and force removal with:
brew uninstall --ignore-dependencies qt
您不使用-强制,但是将这些反向依赖添加到列表中。就我上面的例子而言:
brew uninstall qt@5.14.0 gnuplot octave poppler pyqt
然后,您可以使用brew list
检查是否有任何其他要删除的残余物。
https://stackoverflow.com/questions/44643024
复制相似问题