8

新版 brew 装软件一律要下载一个很慢的文件,哎,没之前好用了,中国特色。。。

 1 year ago
source link: https://www.v2ex.com/t/929899
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

新版 brew 装软件一律要下载一个很慢的文件,哎,没之前好用了,中国特色。。。

V2EX  ›  分享发现

新版 brew 装软件一律要下载一个很慢的文件,哎,没之前好用了,中国特色。。。

  zhengzhongzhao · 21 小时 35 分钟前 · 2578 次点击
24 条回复    2023-04-06 02:55:00 +08:00
alexanderb

alexanderb      21 小时 32 分钟前

用 proxychain-ng 或在.profilerc 里面加上代理设置:

export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
alexanderb

alexanderb      21 小时 32 分钟前

另外也可以添加 homebrew 的国内源
listenfree

listenfree      21 小时 24 分钟前

ALL_PROXY=socks5h://192.168.22.102:8080 brew install
简单易用
agdhole

agdhole      21 小时 17 分钟前

买个手机版的小火箭,macos 也可以用
oxygenbytes

oxygenbytes      20 小时 57 分钟前

什么文件?
tulongtou

tulongtou      20 小时 54 分钟前

@oxygenbytes formula.jws.json
SenLief

SenLief      19 小时 36 分钟前

换源不是基本操作。
BwNVlwSq

BwNVlwSq      17 小时 33 分钟前 via iPhone   ❤️ 1

配置 Proxy 可能是更好的选择
xarthur

xarthur      17 小时 27 分钟前 via iPhone

其实 json 要比之前的 clone 快。
cosette

cosette      16 小时 45 分钟前

现在其实比以前快,不需要每次都 git pull 整个仓库,访问 api 慢的话,换个国内的源,现在每次 `brew update` 的体验比以前好太多了,使用 api 之后,可以 `brew untap homebrew/core homebrew/cask` 节省一点空间
zhengzhongzhao

zhengzhongzhao      15 小时 25 分钟前

@xtinput yes!
@alexanderb

proxychain-ng ? 是 shadowsock 吗
zhengzhongzhao

zhengzhongzhao      15 小时 24 分钟前

@agdhole shadowsock ?
zhengzhongzhao

zhengzhongzhao      15 小时 24 分钟前

@akring 换源不是基本操作。
zhengzhongzhao

zhengzhongzhao      15 小时 19 分钟前

@cosette 节省一点空间???
jsq2627

jsq2627      13 小时 11 分钟前

@zhengzhongzhao 大概比以前节省 1g 左右空间
arischow

arischow      10 小时 28 分钟前

所以你能上這個社區,卻沒想過怎麽利用搜索或者其他方法,利用自己的代理把 brew 的速度提升一下
arischow

arischow      10 小时 27 分钟前

Clash 應該有網關模式,對應地,Surge 的叫增强模式,應該都可以讓你不用再去額外配置終端了。
tcp

tcp      9 小时 38 分钟前 via iPhone

试试这个
export HOMEBREW_NO_INSTALL_FROM_API=1
listenfree

listenfree      7 小时 31 分钟前

@zhengzhongzhao ALL_PROXY=socks5h://192.168.22.102:8080 brew install

ALL_PROXY=socks5h://x.x.x.x:8080 指向随便一个 socks5 代理
后面 brew update,brew install 之类的命令,直接就 ok ,速度取决于你代理地的速度。
churchmice

churchmice      7 小时 0 分钟前

贴一下配置给你
方法一
禁用 api
export HOMEBREW_NO_INSTALL_FROM_API=1

方法二
用国内源
export HOMEBREW_INSTALL_FROM_API=1
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
fatelight

fatelight      3 小时 12 分钟前

clash pro 吧 要不各种库依赖访问慢得你想哭,弄个正常速度节点

关于   ·   帮助文档   ·   博客   ·   nftychat   ·   API   ·   FAQ   ·   我们的愿景   ·   广告投放   ·   实用小工具   ·   965 人在线   最高记录 5556   ·  

创意工作者们的社区

World is powered by solitude

VERSION: 3.9.8.5 · 33ms · UTC 22:07 · PVG 06:07 · LAX 15:07 · JFK 18:07
Developed with CodeLauncher
♥ Do have faith in what you're doing.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK