阿鲲的博客 主修软件工程和算法模型,极客成长中

homebrew历险记

2021-01-10
jktian

阅读:


官方安装代码不好用,总是禁止访问

  1. 翻墙
  2. dns污染,用switchhosts软件,把ip和域名对应 别人的仓库 换清华源 新问题:git仓库迭代树有问题

    解决办法:

    问题描述:Everything you've posted suggests that you're actually overwriting an existing install that has a b0rken core tap. That's unnecessary, since the following is less disruptive:
    rm -fr $(brew --repo homebrew/core)  # because you can't `brew untap homebrew/core`
    brew tap homebrew/core
    

换源

cd "$(brew --repo)"git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git brew update

Similar Posts

上一篇 tf1到tf2的迁移

下一篇 MongoDB历险记

Comments