Homebrew基本使用

安装Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

卸载Homebrew

  1. cd `brew --prefix`
  2. rm -rf Cellar
  3. brew prune
  4. rm `git ls-files`
  5. rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions
  6. rm -rf .git
  7. rm -rf ~/Library/Caches/Homebrew

安装任意包

brew install <packageName> 例如安装git brew install git

卸载任意包

brew uninstall <packageName> 例如卸载git brew uninstall git

查询可用包

brew search <packageName>

查看已安装包列表

brew list

查看任意包信息

brew info <packageName>

更新Homebrew

brew update

查看Homebrew版本

brew -v

Homebrew帮助信息

brew -h

posted @ 2018-05-05 22:43  junlyde  阅读(147)  评论(0编辑  收藏  举报