/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew –help
brew install [包名] //安装git brew install git //安装git-lfs brew install git-lfs //安装wget brew install wget //安装openssl brew install openssl
brew uninstall [包名]
brew search [包名]
brew list
把所有的Formula目录更新,并且会对本机已经安装并有更新的软件用*标明。
brew update
brew upgrade
brew upgrade git
brew outdated
//清理所有包的旧版本 brew cleanup //清理指定包的旧版本 brew cleanup [包名] //查看可清理的旧版本包,不执行实际操作 brew cleanup -n
brew info [包名]
brew home
brew deps [包名]
brew deps --installed --tree
可以通过浏览器访问http://localhost:4567/ 来同网页来管理包
brew server
cd `brew --prefix` rm -rf Cellar brew prune rm `git ls-files` rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions rm -rf .git rm -rf ~/Library/Caches/Homebrew