首页 > 编程知识 正文

homebrew官网,homebrew安装包

时间:2023-05-06 01:35:10 阅读:274495 作者:2029

更换为中科大源: 替换git: cd "$(brew --repo)"git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git 替换homebrew-core: cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-coregit remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git 替换homebrew-cask: cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-caskgit remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git 替换homebrew-bottles: echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc 更新profile: source ~/.zshrc 验证: brew update --verbose 重置官方源: 替换git: cd "$(brew --repo)"git remote set-url origin https://github.com/Homebrew/brew.git 替换homebrew-core: cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remote set-url origin https://github.com/Homebrew/homebrew-core.git 替换homebrew-cask: cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-caskgit remote set-url origin https://github.com/Homebrew/homebrew-cask 更新profile: vi ~/.zshrc

删除export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles

验证: brew update --verbose 参考:https://mirrors.ustc.edu.cn/help/homebrew-bottles.html

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。