[TOC] ## 镜像 > [阿里镜像](https://developer.aliyun.com/mirror/homebrew?spm=a2c6h.13651102.0.0.53322f70WyRXma) ### zsh ``` # 替换brew.git: cd "$(brew --repo)" git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git # 替换homebrew-core.git: cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git # 应用生效 brew update # 替换homebrew-bottles: echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.zshrc source ~/.zshrc ``` ## 应用名 ``` brew search 应用名 #搜索应用 brew install 应用名 brew cask 应用名 # 安装.app的应用 brew outdated #检查老版本 brew upgrade #更新所有应用 brew upgrade 应用名 #更新某个应用 brew cleanup #删除应用的旧版本和缓存删除 brew doctor #检查 ``` ## 更新cask 应用 ``` brew tap buo/cask-upgrade brew cu ```