macOS 平台 Homebrew 更新 brew update 卡死,完美解决

93566-fr2yws6lfyr.png

此文转自: https://www.cnblogs.com/tp0829/p/Homebrew.html

步骤1.替换Homebrew源

$ cd "$(brew --repo)"
$ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

"$(brew --repo)"是用来自动指向Homebrew的目录的.
参考Homebrew源使用帮助.

步骤2.替换homebrew-core源

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

参考Homebrew Core源使用帮助.

步骤3.替换homebrew-cask源.

$ cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

参考Homebrew Cask源使用帮助.

版权属于:

Ginkgo

本文链接:

https://imao2.com/article/89.html(转载时请注明本文出处及文章链接)

Ginkgo

一个今天胜过两个明天。

35 文章
0 评论
5 分类

标签云