Published: 07 Dec 2018 › Updated: 07 Dec 2018
homebrew代理设置
方法一
brew用curl下载,所以给curl挂上socks5的代理即可。
在~/.curlrc文件中输入代理地址即可。
socks5 = "127.0.0.1:1080"
方法二:替换源
替换为中科大源
替换brew.git:
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
替换homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
替换Homebrew Bottles源:
就是在/.bashrc或者/.zshrc文件末尾加
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
这两个文件可以自己创建,/.bashrc和/.bash_profile都可以
重置源
重置brew.git
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
重置homebrew-core:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git
Leave homebrew代理设置 to:
Read more #brew posts
Best Posts From a186r
We have not curated any of a186r's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From a186r
- homebrew代理设置
- 给git设置代理
- libidn11: /usr/lib/libidn.so.11 exists in filesystem (owned by fcitx-sogoupinyin)
- linux环境下制作镜像[转]
- ubuntu下的加密压缩与解压
- 在ubuntu上安装zsh
- ubuntu 16.04 LTS卸载不常用的软件
- gradle下载超时的问题
- ubuntu下wps中文字体缺失问题
- ubuntu系统备份和恢复(2)
- ubuntu备份和恢复完整系统
- 在终端使用代理
- solidity中的函数修饰符
- 在终端中为git、curl等设置代理
- linux处理tar.xz文件
- linux中使用代理安装dropbox
- Solidity中固定大小字节数组转string
- EOS测试链搭建
- 给linux桌面设置一张实时的地球照片
- git相关配置