gnu-sed

Install command:
brew install gnu-sed

Also known as: gsed

GNU implementation of the famous stream editor

https://www.gnu.org/software/sed/

License: GPL-3.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/gnu-sed.json

Formula code: gnu-sed.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 4.10

Binaries: gsed

GNU "sed" has been installed as "gsed".
If you need to use it as "sed", you can add a "gnubin" directory
to your PATH from your bashrc like:

     PATH="$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin:$PATH"

GitHub Packages downloads:

Last 30 days167,826
Downloads8,817,698
Analytics install events (30 days)6,513
Downloads / install events (30 days)25.8×

Source: GitHub Packages, fetched 2026-11-10T00:49:31Z. Analytics dates: 2026-10-11 to 2026-11-10. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs6,50618,299120,582
Installs (--HEAD)721107
Installs on Request5,42016,01194,384
Installs on Request (--HEAD)721105
Build Errors1