在Mac上使用国内源安装 homebrew

打开终端,执行如下指令

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

还原官网地址

bash 复制代码
git -C "/opt/homebrew" remote set-url origin https://github.com/Homebrew/brew

查看版本

bash 复制代码
brew -v

查找软件

bash 复制代码
brew search tcpdump

安装软件

bash 复制代码
brew install tcpdump

软件测试

bash 复制代码
sudo tcpdump
相关推荐
Raspberry_Pi_官方账号40 分钟前
Raspberry Pi Desktop 全面升级,现已登陆 PC 和 Mac
服务器·网络·macos·树莓派·raspberry pi·raspberrypios
king13598745501 小时前
EmbeddingGemma 2 270M 实测:Mac CPU、PDF/Word、256d 与 FTS5
macos·pdf·word
Patrick在香港9 小时前
同一份脚本,mac 正常 Windows 乱码:open() 默认编码实测(附 3.15 终局)
utf-8·windows·python·macos·跨平台·编码·标准库
DevLoom_11 小时前
Mac装NTFS for Mac,不用修改 SIP 安全设置也能正常读写NTFS硬盘
macos·macos 27·mac读写ntfs·ntfs for mac·mac应用
Laurie三省11 小时前
现场版却配上录音室版的歌词?聊聊我给开源 Mac 歌词软件写的多源打分算法
算法·macos·go
David@12 小时前
Mac中cursor怎么检查更新
macos
hanqunfeng1 天前
brew install 或 upgrade 下载缓慢时,手动下载安装包
brew
Lancker1 天前
没有 Mac 也能上架 iOS:GitHub Actions 全自动构建 + 签名 + TestFlight 送审实录
macos·ios·github
hanqunfeng2 天前
brew 升级 cmake 失败:clang++ 找不到 iostream
brew
fei_sun2 天前
RIB、FIB、MAC 、ARP 表
服务器·网络·macos