標籤:macbook mac 包管理器 蘋果系統 homebrew brew
RedHat CentOS Fedora發行版有 yum 可以很方便的安裝軟體包。
Ubuntu 有 apt 包管理器。
那麼Mac OS X有沒有包管理器呢? 答案當然是肯定的(而且不止一個),他就叫做homebrew。
官網http://brew.sh/ (網域名稱很酷)
安裝homebrew 只要一個ruby命令:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew用法如同 apt 一樣
Example usage: brew [info | home | options ] [FORMULA...] brew install FORMULA... brew uninstall FORMULA... brew search [foo] brew list [FORMULA...] brew update brew upgrade [FORMULA...] brew pin/unpin [FORMULA...] Troubleshooting: brew doctor brew install -vd FORMULA brew [--env | config] Brewing: brew create [URL [--no-fetch]] brew edit [FORMULA...] open https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md Further help: man brew brew home
可以安裝我們需要的軟體包了。
本文出自 “Professor哥” 部落格,請務必保留此出處http://professor.blog.51cto.com/996189/1622697
Mac OS X 軟體包管理器 – Homebrew