Homebrew
技巧
- cask 安装助手:brew cu
- 显示已安装程序包依赖关系:
brew deps --tree --installed
- shows you all top-level packages, packages that are not dependencies:
brew leaves | xargs -n1 brew desc --eval-all
- 删除所有未使用的依赖项:
brew autoremove
问题
- 出现错误: 解决方式:
1
2
3Error: Cask adoptopenjdk8 exists in multiple taps:
caskroom/versions/adoptopenjdk8
adoptopenjdk/openjdk/adoptopenjdk81
rm /opt/homebrew/Library/Taps/homebrew/homebrew-cask-versions/Casks/adoptopenjdk8.rb
- 软件无法正常卸载或提示“does not exist”
brew uninstall --cask --force
brew install --cask
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 技术分享!