修改 brew 的源节点来加速更新资源列表和下载

2019-10-23 22:54:51 +08:00
 lunny
cd /usr/local/Homebrew
git remote set-url origin https://gitea.com/Homebrew/brew.git

cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask
git remote set-url origin https://gitea.com/Homebrew/homebrew-cask.git

cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git remote set-url origin https://gitea.com/Homebrew/homebrew-core.git

cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services
git remote set-url origin https://gitea.com/Homebrew/homebrew-services.git

cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions
git remote set-url origin https://gitea.com/Homebrew/homebrew-cask-versions.git

export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
3762 次点击
所在节点    macOS
7 条回复
imzcg
2019-10-23 23:46:19 +08:00
gitee 和清华源哪个快,有感觉吗
lovestudykid
2019-10-24 00:08:18 +08:00
homebrew 没有自己 host 文件,都是到官网链接下载吧?
chendy
2019-10-24 00:21:00 +08:00
http_proxy 解千愁
liangch
2019-10-24 08:43:05 +08:00
git 源建议用原始的。
1002xin
2019-10-24 11:38:12 +08:00
好代理就完事了,这些源到最后一样坑的是自己
dif
2019-10-24 13:46:24 +08:00
function proxy(){
export http_proxy=http://127.0.0.1:1087;
export https_proxy=http://127.0.0.1:1087;
echo -e "梯子模式"
}
function unproxy(){
unset http_proxy
unset https_proxy
echo -e "和谐模式"
}
binmiui
2019-10-29 16:43:55 +08:00
function proxy(){
export all_proxy=socks5://127.0.0.1:1086
echo -e "梯子模式"
}
function unproxy(){
unset all_proxy
echo -e "和谐模式"
}

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/612281

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX