brew 又叫Homebrew,是Mac OSX上的軟件包管理工具,能在Mac中方便的安裝軟件或者卸載軟件, 只須要一個命令, 很是方便html
brew相似ubuntu系統下的apt-get的功能git
閱讀目錄github
brew 的官方網站: http://brew.sh/ 在官方網站對brew的用法進行了詳細的描述正則表達式
安裝方法: 在Mac中打開Termal: 輸入命令:ubuntu
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
不知道爲何, 在國內常常被屏蔽瀏覽器
一個命令就搞定了, 好比安裝gitruby
brew install git
好比安裝wgetcurl
brew install wget
卸載更方便了工具
brew uninstall wget
有時候,你不知道你安裝的軟件的名字, 那麼你須要先搜索下, 查到包的名字。網站
好比我要安裝
brew search /wge*/
/wge*/是個正則表達式, 須要包含在/中
brew list 列出已安裝的軟件
brew update 更新brew
brew home 用瀏覽器打開brew的官方網站
brew info 顯示軟件信息
brew deps 顯示包依賴