Skip to content

grep

Popular
Formula Utilities v3.12

GNU grep, egrep and fgrep

About

Install grep on macOS with Homebrew Formula using `brew install grep`. grep is a Utilities command-line package with version 3.12. The package is listed in homebrew/core.

Install 1 App in Terminal
$
brew install grep
Source: homebrew/core Website Homebrew

Dependencies

Build Dependencies

Installation Notes

All commands have been installed with the prefix "g".
If you need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:
  PATH="$HOMEBREW_PREFIX/opt/grep/libexec/gnubin:$PATH"

Official Homebrew Stats

Install activity metrics for grep.

-5.5% vs 90d avg
30 Days
3.5K total installs
116 installs / day avg
90 Days
11.1K total installs
123 installs / day avg
1 Year
54.7K total installs
150 installs / day avg

Frequently asked questions

How do I install grep with Homebrew?

Run brew install grep in Terminal to install grep as a Homebrew formula on macOS.

What kind of package is grep?

grep is a Utilities Homebrew formula and FastBrew currently shows version 3.12.

What should I review before installing grep?

Review the runtime dependencies (pcre2) and build dependencies (pkgconf) along with any caveats before installing.

Related Utilities Apps

View All
Open xz
xz
Popular

General-purpose data compression with high compression ratio

formula Utilities v5.8.3
Open readline
readline
Popular

Library for command-line editing

formula Utilities v8.3.3
Open gh
gh
Popular

GitHub command-line tool

formula Utilities v2.96.0
Open zstd
zstd
Popular

Zstandard is a real-time compression algorithm

formula Utilities v1.5.7
Open python@3.14
python@3.14
Popular

Interpreted, interactive, object-oriented programming language

formula Utilities v3.14.6
Open glib
glib
Popular

Core application library for C

formula Utilities v2.88.2
X