即使你的软件不是用 Homebrew 安装的,你也可以用它来卸载(加 --force),还可以加上 --zap 让 Homebrew 把该软件所有关联的数据文件都删除(可以用 brew cat 查看具体包括哪些文件),如 brew uninstall --cask --force --zap zoom。
ref:
Homebrew Documentation 上有对 zap 参数的详细解释:
The
zapstanza describes a more complete uninstallation of files associated with a Cask. Thezapprocedures will never be performed by default, but only if the user uses--zaponuninstall:
$ brew uninstall --zap firefox
zapstanzas may remove:
- Preference files and caches stored within the user’s
~/Librarydirectory.- Shared resources such as application updaters. Since shared resources may be removed, other applications may be affected by
brew uninstall --zap. Understanding that is the responsibility of the end user.
zapstanzas should not remove:
- Files created by the user directly.
Appending
--forceto the command will allow you to perform these actions even if the Cask is no longer installed:
brew uninstall --zap --force firefox
ref: