安装
brew install xxx
brew cask install xxx
卸载
brew uninstall xxx
brew cask uninstall xxx
列出所有已安装的包
brew list --cask
brew list --formula
搜索
brew search xxx
正则搜索
brew search /xxx/
查看缓存目录
brew --cache xxx
brew --cache --cask xxx
修改某cask包的配置
brew edit xxx
brew cask edit xxx
fetch远程安装包到本地cache
brew fetch xxx
brew cask fetch xxx
查看对应包的主页
brew home xxx
brew home homebrew/cask/emacs
展示信息
brew info xxx
brew cask info xxx
列出过时包
brew outdated
brew outdated --cask
更新包列表
brew update
升级包
brew upgrade
brew cask upgrade
清理过时的缓存与下载
brew cleanup
用一句话解释formula
brew desc xxx
查看不被依赖的formula
brew leaves
打出需要的环境变量
brew shellenv
在~/.zshrc最后加上这样一行,就不用手动加了
eval $(brew shellenv)
安装自动补全
https://docs.brew.sh/Shell-Completion
如果本文对你有帮助,请打赏以鼓励我做得更好,非常感谢!
