gpatch
Install command:
brew install gpatchApply a diff file to an original
https://savannah.gnu.org/projects/patch/
License: GPL-3.0-or-later
Development: Pull requests
Formula JSON API: /api/formula/gpatch.json
Formula code: gpatch.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
golden gate | ✅ |
|---|---|---|
| tahoe | ✅ | |
| sequoia | ✅ | |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 2.8.1 |
Binaries:
patch
| GNU "patch" has been installed as "gpatch". If you need to use it as "patch", you can add a "gnubin" directory to your PATH from your bashrc like: PATH="$HOMEBREW_PREFIX/opt/gpatch/libexec/gnubin:$PATH" |
GitHub Packages downloads:
| Last 30 days | 96,488 |
|---|---|
| Downloads | 2,938,118 |
| Analytics install events (30 days) | 1,948 |
| Downloads / install events (30 days) | 49.5× |
Source: GitHub Packages, fetched 2026-11-11T00:53:11Z. Analytics dates: 2026-10-12 to 2026-11-11. 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 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 1,947 | 2,907 | 8,860 |
Installs (--HEAD) | 1 | 1 | 3 |
| Installs on Request | 1,274 | 1,732 | 5,193 |
Installs on Request (--HEAD) | 1 | 1 | 3 |
| Build Errors | 3 |