2020-08-08发表homebrew2 分钟读完 (大约225个字)homebrew-sourceHomebrew 换源 中科大开源软件镜像服务 切换中科大的镜像12345678910111213141516# 替换brew.git:cd "$(brew --repo)"git remote set-url origin https://mirrors.ustc.edu.cn/brew.git# 替换homebrew-core.git:cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git# Homebrew cask 软件仓库,提供 macOS 应用和大型二进制文件# 替换homebrew-cask.git:cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-caskgit remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git# 替换 Homebrew Bottles,这是Homebrew提供的二进制代码包# zshexport HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles 切回官方1234567891011# 重置brew.git:cd "$(brew --repo)"git remote set-url origin https://github.com/Homebrew/brew.git# 重置homebrew-core.git:cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remote set-url origin https://github.com/Homebrew/homebrew-core.git# 重置homebrew-cask.git:cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-caskgit remote set-url origin https://github.com/Homebrew/homebrew-cask homebrew-sourcehttps://blog.feijidui.com/homebrew-source/作者Wiley发布于2020-08-08更新于2024-05-26许可协议