1. export HOMEBREW_NO_AUTO_UPDATE=true # 不自動檢查更新 2. cd $(brew --repo)/Library/到執行的homebrew目錄下, git remote set-url origin git://mirrors.ustc.edu.cn/brew.git # 修改默認源 3. cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin git://mirrors.ustc.edu.cn/homebrew-core.git # 修改core源 4. echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bashrc