CocoaEngineering
FORMULAv2.8.1

gpatch for macOS

Apply a diff file to an original

Installation on macOS (Apple Silicon & Intel)

brew install gpatch

Package Metadata

Identifiergpatch
Current Version2.8.1
Tap Repositoryhomebrew/core
LicenseGPL-3.0-or-later
Upstream Homepagehttps://savannah.gnu.org/projects/patch/
Last Verified2026-11-26T14:43:31Z

Engineering Caveats

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"
Browse macOS Packages A–Z