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