mac 安装HomeBrew

目录

一、HomeBrew是什么?

homebrew是一款Mac OS平台下的软件包管理工具,拥有安装、卸载、更新、查看、搜索等功能。通过简单的指令可以实现包管理,而不用关心各种依赖和文件路径情况。

二、HomeBrew命令

1、检查是否安装HomeBrew

powershell 复制代码
brew -v

下面是没有安装brew截图:

2、更新brew版本

powershell 复制代码
brew update

<br

三、安装HomeBrew

1、官网安装

在终端执行如下命令:

powershell 复制代码
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

如果安装不上,一般报如下错误:

powershell 复制代码
curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 23 ms: Couldn't connect to server

无法链接服务器下载,需要梯子,有梯子基本没有问题。

2、100%成功安装

安装指令:

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



重启终端之后,执行brew -v命令,正常输出就说明安装成功了。

卸载命令:

powershell 复制代码
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
相关推荐
2501_9160088916 小时前
移动安全之 APP 加固,保障移动应用安全的重要手段
安全·macos·ios·小程序·uni-app·iphone·xcode
艾莉丝努力练剑1 天前
Mac 远程桌面体验:6 个工具的 macOS 适配情况整理
linux·运维·服务器·macos·面试
YH55269842 天前
MacBook Air M4 和 M5 怎么选?
macos
MoSTChillax2 天前
数字人竞品分析(中):核心功能、产品使用与技术能力对比
ide·macos·xcode
码农阿豪2 天前
【金仓数据库征文】Mac开发环境|SpringBoot3 + MyBatisPlus对接KES V9 Docker实战全指南
数据库·macos·docker
赶路人儿3 天前
MacOS 下实现 AI 操控电脑(Computer Use)的思考
人工智能·macos·策略模式
天空'之城3 天前
VMware17.5.0安装macOS13.7.8|Xcode15.0.1+Qt6.5.3开发环境搭建完整教程
macos·虚拟机·vmware tools
00后程序员张3 天前
使用Instruments工具深入分析iOS应用性能与启动时间优化
android·macos·ios·小程序·uni-app·cocoa·iphone
2601_960906723 天前
AI研发加速中式及泛亚洲
人工智能·vscode·macos·sublime text·phpstorm
sg_knight3 天前
Codex CLI 安装全攻略:macOS / Linux / Windows(WSL2)三端实战
linux·windows·macos·openai·ai编程·coding·codex