Linux command
brew-search 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Search for formula or cask
brew search [text]
Search formulae only
brew search --formula [text]
Search casks only
brew search --cask [text]
Search using regular expression
brew search /[regex]/
List all available formulae
brew search
Search and output as JSON
brew search --json [text]
Search with descriptions
brew search --desc [text]
说明
brew search queries the local Homebrew repository for formulae and casks matching the search term. It searches package names, tokens, and descriptions. The search extends online to homebrew/core and homebrew/cask repositories. Without arguments, it lists all locally available formulae.
参数
- --formula
- Search only formulae (CLI packages)
- --cask
- Search only casks (GUI applications)
- --desc
- Include package descriptions in search
- --json
- Output results in JSON format
- --pull-request
- Search for GitHub pull requests containing text
- --open
- Search only open pull requests
- --closed
- Search only closed pull requests
FAQ
What is the brew-search command used for?
brew search queries the local Homebrew repository for formulae and casks matching the search term. It searches package names, tokens, and descriptions. The search extends online to homebrew/core and homebrew/cask repositories. Without arguments, it lists all locally available formulae.
How do I run a basic brew-search example?
Run `brew search [text]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --formula do in brew-search?
Search only formulae (CLI packages)