Qt Brew:卸载软件包的所有版本

Qt Brew:卸载软件包的所有版本,qt,homebrew,Qt,Homebrew,我正在尝试卸载qt。 我确实brew卸载了qt,它卸载了5.9.0版,但它说: 4.8.7_2、5.8.0_1 2仍在安装 我也想删除它们。 是否有办法使用brew卸载软件包的所有版本? 提前谢谢 操作系统:macel-Capitan brew uninstall --force qt 工作 这两个选项都可能会警告仍然存在依赖项,例如在我的机器上: $ brew uninstall qt Error: Refusing to uninstall /usr/local/Cellar/qt/5.1

我正在尝试卸载
qt
。 我确实
brew卸载了qt
,它卸载了5.9.0版,但它说:

4.8.7_2、5.8.0_1 2仍在安装

我也想删除它们。 是否有办法使用
brew
卸载软件包的所有版本? 提前谢谢

操作系统:
macel-Capitan

brew uninstall --force qt
工作

这两个选项都可能会警告仍然存在依赖项,例如在我的机器上:

$ 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
您不使用--force,而是将这些反向依赖项添加到列表中。就我上面的例子而言:

brew uninstall qt@5.14.0 gnuplot octave poppler pyqt
然后,您可以使用
brew list
检查是否有任何其他要清除的残留物

brew uninstall qt@5.14.0 gnuplot octave poppler pyqt