Debian
- package
- patch
- binary
- patch
- repository
- main
sudo apt install patchVerified 2026-07-02source
Text Processing
Apply diff files to original files.
Aliases: gpatch · patch
Package and binary names are factual values and are never translated.
sudo apt install patchVerified 2026-07-02source
sudo apt install patchIndexed package evidence
Current representative package builds linked from pkgseek's release and architecture index.
| Release | Version | Architecture | Verified binary path |
|---|---|---|---|
| focal/main | 2.7.6-6 | amd64 | /usr/bin/patch |
| jammy/main | 2.7.6-7build2 | amd64 | /usr/bin/patch |
| noble/main | 2.7.6-7build3 | amd64 | /usr/bin/patch |
| resolute/main | 2.8-2build1 | amd64 | /usr/bin/patch |
Verified 2026-07-02source
sudo pacman -S patchVerified 2026-07-02source
sudo dnf install patchIndexed package evidence
Current representative package builds linked from pkgseek's release and architecture index.
| Release | Version | Architecture | Verified binary path |
|---|---|---|---|
| 42/updates | 2.8-1.fc42 | x86_64 | /usr/bin/patch |
| 43/everything | 2.8-2.fc43 | x86_64 | /usr/bin/patch |
| 44/everything | 2.8-4.fc44 | x86_64 | /usr/bin/patch |
Verified 2026-07-02source
sudo apk add patchIndexed package evidence
Current representative package builds linked from pkgseek's release and architecture index.
Verified 2026-07-02source
sudo zypper install patchIndexed package evidence
Current representative package builds linked from pkgseek's release and architecture index.
| Release | Version | Architecture | Verified binary path |
|---|---|---|---|
| 15.6/update-sle | 2.7.6-150000.5.9.1 | aarch64 | /usr/bin/patch |
| 15.6/update-sle | 2.7.6-150000.5.9.1 | ppc64le | /usr/bin/patch |
| 15.6/update-sle | 2.7.6-150000.5.9.1 | s390x | /usr/bin/patch |
| 15.6/update-sle | 2.7.6-150000.5.9.1 | x86_64 | /usr/bin/patch |
| 16.0/oss | 2.7.6-160000.4.1 | aarch64 | /usr/bin/patch |
| 16.0/oss | 2.7.6-160000.4.1 | ppc64le | /usr/bin/patch |
| 16.0/oss | 2.7.6-160000.4.1 | s390x | /usr/bin/patch |
| 16.0/oss | 2.7.6-160000.4.1 | x86_64 | /usr/bin/patch |
Verified 2026-07-02source
brew install gpatchInstall package `gpatch`, then run `gpatch`.
Verified 2026-07-02source
Flags are imported with their command-level source and verification date.
patch [OPTIONS] [ORIGFILE [PATCHFILE]]Verified 2026-07-02source
| Flag | Description | Since |
|---|---|---|
| --strip, -p <num> | Strip leading path components from file names. | — |
| --dry-run | Print what would happen without changing files. | — |
| --reverse, -R | Apply the patch in reverse. | — |
| --directory, -d <dir> | Change to a directory before applying the patch. | — |