推荐镜像:
- Gitee 镜像:https://gitee.com/cunkai/HomebrewCN
- 官方网站:https://brew.sh/
Homebrew 是 macOS 上最受欢迎的包管理工具,它让你能够便捷地安装、更新和管理各种软件包。本文将介绍多种安装方式,并提供国内镜像加速方案。
一、什么是 Homebrew?
Homebrew 是 macOS 上最受欢迎的包管理工具,它让你能够便捷地安装、更新和管理各种软件包。
二、安装前准备
-
确保系统要求:
- macOS Monterey (12.0) 或更高版本
- 已安装 Command Line Tools (CLT)
-
安装 Command Line Tools:
xcode-select --install
三、安装方式
1. 国内镜像安装(推荐)
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2. 官方安装脚本
/bin/bash