Skip to content

Instantly share code, notes, and snippets.

@coverdh
Created November 28, 2016 15:39
Show Gist options
  • Save coverdh/e6ab21b938f99d10b8442712e82cce11 to your computer and use it in GitHub Desktop.
Save coverdh/e6ab21b938f99d10b8442712e82cce11 to your computer and use it in GitHub Desktop.
homebrew使用socks-proxy
homebrew使用socks-proxy
By suchasplus on October 8, 2014 10:25 PM | 2 Comments | No TrackBacks
国庆给MacMini加装了块SSD, 直接重装了系统,用Mac Homebrew安装各种GNU工具ing
托GFVV的福, 不但login.live.com和yahoo.com的SSL被MITM了, 连homebrew去sf.net和github.com下载源码都会被干扰SSL握手
迫不得已用proxy...
homebrew使用curl, 所以直接给curl加proxy就行了
curl --socks5-hostname 127.0.0.1:1080 ip.cn查看结果是linode日本了...
在~/.curlrc中设置 socks5 = "127.0.0.1:1080"就搞定了
参考链接:
Homebrew should not ignore curlrc
Use curl behind SOCKS5 proxy
Categories: macosx
Tags: curl, homebrew, macosx, socks
No TrackBacks
TrackBack URL: http://blog.suchasplus.com/mt/mt-tb.cgi/340
2 Comments
lrobot | October 12, 2014 1:09 PM | Reply
昨天也遇到这个问题。采用同样的方法不过稍有不同
#某些下载需要proxy
ALL_PROXY=socks5://a:a@localhost:8765 brew install wget
#不需要proxy就直接下了
brew install node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment