brew换源
admin
2024-03-24 00:34:51

查看 brew.git 当前源

$ cd “$(brew --repo)” && git remote -v
origin https://github.com/Homebrew/brew.git (fetch)
origin https://github.com/Homebrew/brew.git (push)

查看 homebrew-core.git 当前源

$ cd “$(brew --repo homebrew/core)” && git remote -v
origin https://github.com/Homebrew/homebrew-core.git (fetch)
origin https://github.com/Homebrew/homebrew-core.git (push)

修改 brew.git 为阿里源

$ git -C “$(brew --repo)” remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

修改 homebrew-core.git 为阿里源

$ git -C “$(brew --repo homebrew/core)” remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git

zsh 替换 brew bintray 镜像

$ echo ‘export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles’ >> ~/.zshrc
$ source ~/.zshrc

bash 替换 brew bintray 镜像

$ echo ‘export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles’ >> ~/.bash_profile
$ source ~/.bash_profile

刷新源

$ brew update

相关内容

热门资讯

今晚必须把夜宵安排上!前几天点... 今晚必须把夜宵安排上!前几天点的那家烧烤就很不错,烤鸡翅外焦里嫩,咬一口滋滋冒油,撒上的辣椒面和孜然...
原创 一... 忙忙碌碌的三餐里,总有一道汤品简单却格外暖心,那就是家常紫菜蛋花汤。它没有繁复的食材,没有考究的工序...
产区协同·国资引领·多元融合—... 第114届全国糖酒商品交易会于2026年3月26日至28日在成都世纪城新国际会展中心和中国西部国际博...
奶茶开路!这一季春茶,在海外卖... (文/刘媛媛 编辑/周远方) 每年3月至清明前,是中国春茶集中上市的黄金期。从四川宜宾的早春茶,到...
渭南蒲城椽头蒸馍!陕西非遗面食... 在八百里秦川的腹地,渭南市蒲城县孕育出一种被誉为“面食活化石”的珍馐——蒲城椽头蒸馍。它并非寻常巷陌...