Mac下homebrew的简单快速了解

homebrew的官网 https://brew.sh/

1、homebrew是macOS(或 Linux)缺失的软件包的管理器
2、homebrew的安装:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
3、Homebrew 会将软件包安装到独立目录Cellar,并将其文件软链接至 /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
这里可以看到所有你用homebrew安装的软件

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

滚动至顶部