Skip to content
pkgseek
All tools

patch

Text Processing

Apply diff files to original files.

Aliases: gpatch · patch

Installation by platform

Package and binary names are factual values and are never translated.

Package verification report

Debian

Verified
package
patch
binary
patch
repository
main
sudo apt install patch

Verified 2026-07-02source

Ubuntu

Verified
package
patch
binary
patch
repository
main/universe
sudo apt install patch

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
focal/main2.7.6-6amd64/usr/bin/patch
jammy/main2.7.6-7build2amd64/usr/bin/patch
noble/main2.7.6-7build3amd64/usr/bin/patch
resolute/main2.8-2build1amd64/usr/bin/patch

Verified 2026-07-02source

Arch

Verified
package
patch
binary
patch
repository
core
sudo pacman -S patch

Verified 2026-07-02source

Fedora

Verified
package
patch
binary
patch
repository
fedora
sudo dnf install patch

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
42/updates2.8-1.fc42x86_64/usr/bin/patch
43/everything2.8-2.fc43x86_64/usr/bin/patch
44/everything2.8-4.fc44x86_64/usr/bin/patch

Verified 2026-07-02source

Alpine

Verified
package
patch
binary
patch
repository
main
sudo apk add patch

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
3.22/main2.8-r0x86_64/usr/bin/patch
3.23/main2.8-r0x86_64/usr/bin/patch

Verified 2026-07-02source

openSUSE

Verified
package
patch
binary
patch
repository
oss
sudo zypper install patch

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
15.6/update-sle2.7.6-150000.5.9.1aarch64/usr/bin/patch
15.6/update-sle2.7.6-150000.5.9.1ppc64le/usr/bin/patch
15.6/update-sle2.7.6-150000.5.9.1s390x/usr/bin/patch
15.6/update-sle2.7.6-150000.5.9.1x86_64/usr/bin/patch
16.0/oss2.7.6-160000.4.1aarch64/usr/bin/patch
16.0/oss2.7.6-160000.4.1ppc64le/usr/bin/patch
16.0/oss2.7.6-160000.4.1s390x/usr/bin/patch
16.0/oss2.7.6-160000.4.1x86_64/usr/bin/patch

Verified 2026-07-02source

Homebrew

Platform outside package indexGotcha
package
gpatch
binary
gpatch
repository
homebrew/core
brew install gpatch

Install package `gpatch`, then run `gpatch`.

Verified 2026-07-02source

Commands and flags

Flags are imported with their command-level source and verification date.

patch

patch [OPTIONS] [ORIGFILE [PATCHFILE]]

Verified 2026-07-02source

FlagDescriptionSince
--strip, -p <num>Strip leading path components from file names.—
--dry-runPrint what would happen without changing files.—
--reverse, -RApply the patch in reverse.—
--directory, -d <dir>Change to a directory before applying the patch.—