brew 使用方法
brew 使用方法
本文档介绍 brew 使用方法 的相关内容。
查看版本
brew -v 帮助命令
brew -h 更新 brew
brew update 搜索软件包
# Usage: brew search [options] [text|/text/] brew search git 查看软件包信息
# Usage: brew info [options] [formula] brew info git 安装软件包
# Usage: brew install [options] formula brew install git 卸载软件包
# Usage: brew uninstall, rm, remove [options] formula brew uninstall git 升级过期软件包
# Usage: brew upgrade [options] formula brew upgrade git 列出所有已安装软件包
# Usage: brew list, ls [options] brew list 删除软件包
Remove stale lock files and outdated downloads for formulae and casks, and remove old versions of installed formulae. If arguments are specified, only do this for the specified formulae and casks.
# brew cleanup [options] [formula|cask] brew cleanup 查看需要更新的软件包
# Usage: brew outdated [options] brew outdated 查看brew git home目录并在浏览器打开对应的目录
Open formula’s homepage in a browser. If no formula is provided, open Homebrew’s own homepage in a browser.
brew home git 查看软件包依赖
# Usage: brew deps [options] formula brew deps git 删除软件包的软链接
# Usage: brew unlink [options] formula brew unlink git 添加软件包的软链接
# Usage: brew ln, link [options] formula brew link git 锁定软件包,防止自动升级
brew pin git 本文由作者按照 CC BY 4.0 进行授权