Homebrew是Mac OSX上的軟件包管理工具,能在Mac中方便的安裝軟件或者卸載軟件,Homebrew將這些工具通通安裝到了/usr/local/Cellar
目錄中,並在/usr/local/bin
中建立符號連接。git
命令行輸入: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
github
brew的命令是基於git的,因此要先安裝git
ruby
- 安裝軟件:brew install 軟件名,例:brew install git
- 搜索軟件:brew search 軟件名,例:brew search git
- 卸載軟件:brew uninstall 軟件名,例:brew uninstall git
- 更新全部軟件:brew update
- 更新具體軟件:brew upgrade 軟件名 ,例:brew upgrade git
- 顯示已安裝軟件:brew list
- 查看軟件信息:brew info/home 軟件名 ,例:brew info git / brew home git
- 查看那些已安裝的程序須要更新: brew outdated
- 查看brew安裝的軟件配置:brew config
- 顯示包依賴:brew reps