Files
tldr/pages.zh/common/brew.md

37 lines
894 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# brew
> Homebrew - macOS和Linux的包管理器。
> 一些子命令如`install`有自己的使用文档。
> 更多信息:<https://docs.brew.sh/Manpage>。
- 安装公式或cask的最新稳定版本使用`--devel`安装开发版本):
`brew install {{formula}}`
- 列出所有已安装的公式和cask
`brew list`
- 升级已安装的公式或cask如果未指定则升级所有已安装的公式/cask
`brew upgrade {{formula}}`
- 从Homebrew源代码库获取Homebrew及所有公式和cask的最新版本
`brew update`
- 显示有更高版本可用的公式和cask
`brew outdated`
- 搜索可用的公式即包和cask即本地macOS `.app`包):
`brew search {{text}}`
- 显示有关公式或cask的信息版本、安装路径、依赖项等
`brew info {{formula}}`
- 检查本地Homebrew安装的潜在问题
`brew doctor`