官網(wǎng)
https://brew.sh/
安裝
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew常用命令
brew install name # 安裝源碼
brew info svn # 顯示軟件的各種信息(包括版本、源碼地址、依賴等等)
brew uninstall name # 卸載軟件
brew search name # 搜索brew 支持的軟件(支持模糊搜索)
brew list # 列出本機通過brew安裝的所有軟件
brew update # brew自身更新
brew upgrade name #更新安裝過的軟件(如果不加軟件名,就更新所有可以更新的軟件)
brew cleanup #清除下載的緩存
brew cask的常用命令
brew cask search # 列出所有可以被安裝的軟件
brew cask search name # 查找所有和 name相關的應用
brew cask install name # 下載安裝軟件
brew cask uninstall name # 卸載軟件
brew cask info app # 列出應用的信息
brew cask list # 列出本機安裝過的軟件列表
brew cask cleanup # 清除下載的緩存以及各種鏈接信息
brew cask uninstall name && brew cask install name #更新程序 (目前homebrew-cask 并沒有命令直接更新已安裝的軟件,軟件更新主要是通過軟件自身的完成更新)