Linux command
brew-info 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Display information about a formula
brew info [formula]
Display information about a cask
brew info --cask [cask]
Output formula info as JSON
brew info --json=v2 [formula]
Show info for all installed formulae
brew info --installed
Show verbose analytics data
brew info --analytics [formula]
Show installed formula sizes
brew info --size [formula]
说明
brew info displays information about a formula or cask including name, version, description, homepage, dependencies, installation status, and available options. For disabled and deprecated formulae, it also provides an explanation of the status.
参数
- --json _version_
- Output as JSON (v1 for formula default, v2 for formula and cask)
- --installed
- Show info for installed formulae only
- --all
- Evaluate all available formulae and casks
- --formula
- Treat all arguments as formulae
- --cask
- Treat all arguments as casks
- --analytics
- Show verbose analytics data
- --size
- Show size of installed formulae and casks
- --variations
- Include variations hash in JSON output
- --github-packages-manifest
- Fetch GitHub Packages manifest for extra information
FAQ
What is the brew-info command used for?
brew info displays information about a formula or cask including name, version, description, homepage, dependencies, installation status, and available options. For disabled and deprecated formulae, it also provides an explanation of the status.
How do I run a basic brew-info example?
Run `brew info [formula]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --json _version_ do in brew-info?
Output as JSON (v1 for formula default, v2 for formula and cask)