Homebrew基础
1. 安装
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew -v
2. 基本命令
brew list
brew search
brew install wget
brew uninstall wget
brew info wget
brew services list
brew services start rabbitmq
brew services stop rabbitmq
brew services restart rabbitmq
brew update
brew outdated
brew upgrade
brew upgrade jpeg
man brew
brew help
brew help [command]
brew commands
1. formulae 意思是一些软件包,一般是命令行工具、开发库、一些字体、插件,共性是不提供界面,提供给终端或者是开发者使用。
2. cask 是用户软件,比如 chrome、mvim、wechat、wechatwork 这些提供用户交互界面的软件。
3. 调优
3.1. 切换为安装源, 关闭自动更新
cd "$(brew --repo)"
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles
HOMEBREW_NO_AUTO_UPDATE=true
4. 参考