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)"
相关推荐
Patrick在香港7 小时前
同一份脚本,mac 正常 Windows 乱码:open() 默认编码实测(附 3.15 终局)
utf-8·windows·python·macos·跨平台·编码·标准库
DevLoom_9 小时前
Mac装NTFS for Mac,不用修改 SIP 安全设置也能正常读写NTFS硬盘
macos·macos 27·mac读写ntfs·ntfs for mac·mac应用
Laurie三省9 小时前
现场版却配上录音室版的歌词?聊聊我给开源 Mac 歌词软件写的多源打分算法
算法·macos·go
David@10 小时前
Mac中cursor怎么检查更新
macos
Lancker1 天前
没有 Mac 也能上架 iOS:GitHub Actions 全自动构建 + 签名 + TestFlight 送审实录
macos·ios·github
fei_sun2 天前
RIB、FIB、MAC 、ARP 表
服务器·网络·macos
Highcharts.js2 天前
如何在macOS桌面应用集成Highcharts
macos·highcharts·前端可视化·交互图表
zaemyn20202 天前
macOS 上 AccessClient 无法唤起?排查 Python 架构与 Windows App 识别问题
windows·python·macos·远程桌面·accessclient
应用市场3 天前
把旧 Pixel 变成相册备份中转站(上):Mac 到安卓的照片传输工具设计——流式上传、sha256 校验、adb forward 与 Bonjour
android·macos·adb·kotlin·swift
Peter(阿斯拉)4 天前
[macOS Tahoe 26]_[使用SmartSVN访问库路径报错的问题]
macos·svn·tahoe·smartsvn·macos26