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

24 lines
481 B
Markdown
Raw 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 search
> 搜索 casks 和 formulae。
> 更多信息:<https://docs.brew.sh/Manpage#search--s-options-textregex->。
- 使用关键字搜索 casks 和 formulae
`brew search {{keyword}}`
- 使用正则表达式搜索 casks 和 formulae
`brew search /{{regular_expression}}/`
- 启用通过描述进行搜索:
`brew search --desc {{keyword}}`
- 仅搜索 formulae
`brew search --formula {{keyword}}`
- 仅搜索 casks
`brew search --cask {{keyword}}`