What is ripgrep?
ripgrep searches file contents recursively and is useful for navigating source repositories.
Homebrew installs ripgrep as a formula: a package definition for command-line software and its dependencies. If Homebrew is not installed yet, follow the official installation guide before continuing.
Install and check the formula
Refresh Homebrew’s package definitions, then install ripgrep. Use brew info to inspect the current package and its dependencies; the actual installed version can change over time.
brew update
brew install ripgrep
brew info ripgrepTry it
This searches the current directory for TODO. Run it inside the project you actually want to search.
rg --version
rg "TODO" .Before you rely on it
By default ripgrep respects ignore files and skips hidden paths; check its help before assuming every file was searched.
grep is widely available and suitable for portable scripts; ripgrep is convenient for interactive repository searches.
Update or remove it
Run brew outdated to see if a newer version is available, and brew upgrade ripgrep to upgrade this formula. Before removing it, preview the changes; other packages may depend on it.
brew outdated
brew upgrade ripgrep
brew uninstall --dry-run ripgrep