Skip to content

开发工具系列之— Macos下homebrew更新慢问题的解决 #60

@johnnian

Description

@johnnian

说明

平时在使用homebrew安装软件的时候,第一步总是要先执行 brew update,然后就卡住了...

下面的方法,可以解决这个问题:

步骤1: 替换 brew.git 源

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

步骤2:替换 homebrew-core.git 源

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

步骤3: 执行更新

brew update

附录

网上搜到的几个 brew 源:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions