Mac brew安装软件镜像加速

大家伙可能碰到Mac下brew安装软件慢的问题,可以添加加速镜像来解决。

在.bash_profile文件中加入:

export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"

export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"

export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"

brew4.x API加速

export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api"

然后source一下:

复制代码
source .bash_profile

再来用brew来安装软件,速度快了很多!

相关推荐
Hello.Reader13 小时前
Git 安装全攻略Linux、macOS、Windows 与源码编译
linux·git·macos
Hope Fancy13 小时前
macOS 连接 Docker 运行 postgres,使用navicat添加并关联数据库
macos·docker·postgresql
John Song13 小时前
macOS 上使用 Homebrew 安装redis-cli
数据库·redis·macos
yanjiee13 小时前
编译一个Mac M系列可以用的yuview
macos
数据知道13 小时前
Mac电脑上本地安装 redis并配置开启自启完整流程
数据库·redis·macos
电手18 小时前
Win10停更,Win11不好用?现在Mac电脑比Win11电脑更便宜
windows·macos·电脑·mac
LAOning111 天前
xcode 各版本真机调试包下载
ide·macos·xcode
安和昂1 天前
【iOS】ARC 与 Autorelease
macos·ios·cocoa
数据知道2 天前
Mac电脑上本地安装 MySQL并配置开启自启完整流程
mysql·macos
Cynthia-石头2 天前
Mac 双系统
macos