Homebrew Bottles 软件仓库

注:该镜像是 Homebrew 二进制预编译包的镜像。镜像站同时提供 Homebrew 的 formula 索引的镜像(即 brew update 时所更新内容),请参考 Homebrew 镜像使用帮助

TUNA/USTC 以及以 TUNA/USTC 为上游的镜像站均提供了 HOMEBREW_API_DOMAIN 的接口;SJTUG 暂未提供该接口。

临时替换

export HOMEBREW_API_DOMAIN="https://mirrors.ha.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ha.edu.cn/homebrew-bottles"

长期替换

如果你使用 bash:

echo 'export HOMEBREW_API_DOMAIN="https://mirrors.ha.edu.cn/homebrew-bottles/api"' >> ~/.bash_profile
echo 'export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ha.edu.cn/homebrew-bottles"' >> ~/.bash_profile
export HOMEBREW_API_DOMAIN="https://mirrors.ha.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ha.edu.cn/homebrew-bottles"

如果你使用 zsh:

echo 'export HOMEBREW_API_DOMAIN="https://mirrors.ha.edu.cn/homebrew-bottles/api"' >> ~/.zprofile
echo 'export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ha.edu.cn/homebrew-bottles"' >> ~/.zprofile
export HOMEBREW_API_DOMAIN="https://mirrors.ha.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ha.edu.cn/homebrew-bottles"

注:Linuxbrew 核心仓库(linuxbrew-core)自 2021 年 10 月 25 日(brew 版本 3.3.0 起)被弃用,Linuxbrew 用户应迁移至 homebrew-core。Linuxbrew 用户请依本镜像说明重新设置镜像。