当前位置: 首页 > news >正文

Mirror | homebrew 镜像源配置

1. 详细步骤

1.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" && 
export HOMEBREW_PIP_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"

1.2 长期设置(可能不生效)

# 编辑配置文件
vim ~/.bashrc
# 文件末尾加入以下内容
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"
export HOMEBREW_PIP_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"# 刷新环境变量
source ~/.bashrc

2. 参考资料

2.1 清华大学开源软件镜像站

2.1.1 Homebrew 软件仓库

https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/


http://www.mrgr.cn/news/39447.html

相关文章:

  • 音乐项目总结(终)
  • 06.C/C++内存管理
  • Python: RAII:函数执行完毕,socket对象主动发送fin
  • MRC接收机
  • 鸿蒙harmonyos next flutter通信之BasicMessageChannel获取app版本号
  • 免费语音转文字软件全览:开启高效记录新时代
  • 接口自动化测试概述
  • 大厂校招:海能达嵌入式面试题及参考答案
  • PCL 快速均匀下采样
  • LeetCode 热题 100 回顾7
  • windows C++-使用上下文类实现协作信号量
  • 初识Linux · 地址空间
  • Linux 信号捕捉
  • plt散点图实战
  • Mysql锁
  • 【C语言进阶】一次解决字符串输入问题——为什么输入这么容易奔溃?
  • 事实与价值双阈值是算计启动的门槛
  • 如何使用 INNER JOIN、LEFT JOIN 和 RIGHT JOIN?
  • windows C++-使用过度订阅偏移延迟
  • Tomcat架构解析