其他分享
首页 > 其他分享> > Mac下brew安装及使用

Mac下brew安装及使用

作者:互联网

The Missing Package Manager for macOS (or Linux). 官网

安装

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
...

如果连接被拒绝,查看解决方案 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

查看

$ brew -v
Homebrew 2.2.17
Homebrew/homebrew-core (git revision 3dad3; last commit 2020-05-19)

使用

# 安装管理
$ brew --help
Example usage:
  brew search [TEXT|/REGEX/]
  brew info [FORMULA...]
  brew install FORMULA...
  brew update
  brew upgrade [FORMULA...]
  brew uninstall FORMULA...
  brew list [FORMULA...]
...

# 服务管理
$ brew services --help
...

使用 brew 安装的软件默认路径:/usr/local/Cellar


whosmeya.com

标签:...,local,Mac,usr,Homebrew,brew,FORMULA,安装
来源: https://www.cnblogs.com/whosmeya/p/13114438.html