macOS 安装 Homebrew 教程:多种方式与国内镜像加速

推荐镜像:

Homebrew 是 macOS 上最受欢迎的包管理工具,它让你能够便捷地安装、更新和管理各种软件包。本文将介绍多种安装方式,并提供国内镜像加速方案。
在这里插入图片描述

一、什么是 Homebrew?

Homebrew 是 macOS 上最受欢迎的包管理工具,它让你能够便捷地安装、更新和管理各种软件包。

二、安装前准备

  1. 确保系统要求:

    • macOS Monterey (12.0) 或更高版本
    • 已安装 Command Line Tools (CLT)
  2. 安装 Command Line Tools:

xcode-select --install

三、安装方式

1. 国内镜像安装(推荐)

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

2. 官方安装脚本

/bin/bash 

猜你喜欢

转载自blog.csdn.net/weixin_44297859/article/details/144886758
今日推荐