【mac】homebrew包管理安装
1、官网
https://brew.sh/
Homebrew 源使用帮助 — USTC Mirror Help 文档
2、国内
https://gitee.com/cunkai/HomebrewCN
3、安装
官方
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 卸载 /bin/bash -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall)" # 自升级 brew upgrade brew
镜像源
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
中文安装教程(建议收藏):https://brew.idayer.com/ 如果你想换源,可以使用镜像助手:https://brew.idayer.com/guide/change-source/
4、更新国内源
cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask" git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew-cask.git echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile source ~/.bash_profile
5、使用
MacBook-Pro ~ % brew help Example usage: brew search TEXT|/REGEX/ brew info [FORMULA|CASK...] brew install FORMULA|CASK... brew update brew upgrade [FORMULA|CASK...] brew uninstall FORMULA|CASK... brew list [FORMULA|CASK...] Troubleshooting: brew config brew doctor brew install --verbose --debug FORMULA|CASK Contributing: brew create URL [--no-fetch] brew edit [FORMULA|CASK...] Further help: brew commands brew help [COMMAND] man brew https://docs.brew.sh
参考链接:
https://blog.csdn.net/Gusand/article/details/119214434
https://www.jianshu.com/p/c460eaa0c354
https://learnku.com/docs/qianxi-golang/2020/macos-domestic-installation-of-homebrew/8033
https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/
https://www.jianshu.com/p/07aa3a64648e
https://mirrors.ustc.edu.cn/help/brew.git.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?