homebrew更新源解决慢的问题
homebrew慢,主要常见的是安装过程中慢和后续安装需要的程序慢。
- 下载home-core文件,更新源
git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1cd "$(brew --repo)"git remote set-url origin https://mirrors.ustc.edu.cn/brew.gitcd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.gitcd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
tips:如果已经正常下载了源文件,就不需要git clone拉文件了。直接进入对于目录,重新设置相关的origin地址就可以了。这里是有的中科大的源,国内也有清华的,阿里的等源也可以使用,具体可以查询相关地址,操作一样
- 设置完,执行brew update 更新
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
