LinuxCommandLibrary

brew-search

Search for available Homebrew packages

TLDR

Search for formula or cask

$ brew search [text]
copy
Search formulae only
$ brew search --formula [text]
copy
Search casks only
$ brew search --cask [text]
copy
Search using regular expression
$ brew search /[regex]/
copy
List all available formulae
$ brew search
copy
Search and output as JSON
$ brew search --json [text]
copy
Search with descriptions
$ brew search --desc [text]
copy

SYNOPSIS

brew search [options] [text|/regex/]

DESCRIPTION

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.

PARAMETERS

--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

REGULAR EXPRESSIONS

Wrapping search term in slashes enables regex:

$ brew search /^python@/
copy
Searches for packages starting with "python@"

CAVEATS

Search results include both installed and available packages. Use brew info for detailed information about specific packages. The search is case-insensitive by default.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community