标签:mac brew homebrew mac安装brew mac安装homebrew
brew 全称Homebrew 是Mac OSX上的软件包管理工具
Homebrew 安装和卸载工具 只用一行命令就能完成
官方地址: http://brew.sh/index.html
ruby -version
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
命令行 输入: brew
输出:
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
举个栗子: wget 这个工具
输入命令: brew install wget
如图:
拿上面的栗子: wget 工具
输入命令 brew uninstall wget
Homebrew 会将套件安装到独立目录,并将文件软链接至/usr/local 。
$ cd /usr/local $ find Cellar Cellar/wget/1.16.1 Cellar/wget/1.16.1/bin/wget Cellar/wget/1.16.1/share/man/man1/wget.1 $ ls -l bin bin/wget -> ../Cellar/wget/1.16.1/bin/wget
brew list 列出已安装的软件
brew update 更新brew
brew home 用浏览器打开brew的官方网站
brew info 显示软件信息
brew deps 显示包依赖
标签:mac brew homebrew mac安装brew mac安装homebrew
原文地址:http://blog.csdn.net/aaawqqq/article/details/44088141