Mac 安装Homebrew方案

Homebrew 能干什么?

使用 Homebrew 安装 Apple(或您的 Linux 系统)没有预装但 你需要的东西。

brew install wget

Homebrew 会将软件包安装到独立目录,并将其文件软链接至 /usr/local

$ cd /usr/local
$ find Cellar
Cellar/wget/1.16.1
Cellar/wget/1.16.1/bin/wget
Cellar/wget/1.16.1/share/man/man1/wget.1

$ ls -l bin
bin/wget -> ../Cellar/wget/1.16.1/bin/wget

官网下载

终端输入命令:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

稳定方案

官网下载网络不稳定,以下地址是稳定方案
输入命令:/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
请按照序号进行输入,过程需要等待

猜你喜欢

转载自blog.csdn.net/A_yonga/article/details/127984519