macOS
brew install gpatchlocal Homebrew formula metadata
sudo port install gpatchMacPorts ports tree · devel/gpatch/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de gpatch pour les workflows d'agents IA.
installation
brew install gpatchlocal Homebrew formula metadata
sudo port install gpatchMacPorts ports tree · devel/gpatch/Portfile · Source: api.github.com
sudo apk add patchAlpine Linux edge package indexes · patch · Source: dl-cdn.alpinelinux.org
sudo apt install patchDebian stable package indexes · patch · Source: deb.debian.org
sudo dnf install patchFedora Rawhide package metadata · patch · Source: dl.fedoraproject.org
nix profile install nixpkgs#patchnixpkgs package indexes · patch · Source: raw.githubusercontent.com
sudo pacman -S patchArch Linux sync databases · patch · Source: geo.mirror.pkgbuild.com
sudo zypper install patchopenSUSE Tumbleweed package metadata · patch · Source: download.opensuse.org
choco install patchChocolatey community package catalog · patch · Source: community.chocolatey.org
scoop install main/patchScoop official bucket manifest trees · bucket/patch.json · Source: api.github.com
winget install --id GnuWin32.Patch -eWindows Package Manager source index · GnuWin32.Patch · Source: cdn.winget.microsoft.com
aperçu
Apply a diff file to an original
historique
GNU patch applies diff output to original files to produce modified files. It descends from Larry Wall's patch program and became one of the basic tools of Unix source distribution, mailing-list development, and package-manager patch application.
The GNU patch README states that this GNU version applies diff files to original files and includes many Free Software Foundation changes: binary and large-file handling, unified diff support, merge behavior, GNU-style backup files, improved RCS and SCCS interaction, GNU option parsing/configure conventions, and better POSIX compliance.
The README also explains why the FSF distributed GNU patch independently: Larry Wall had not released a new version since mid-1988, and he agreed to GNU distribution under the GNU General Public License. GNU bulletins from the 1990s describe patch as GNU's version of Larry Wall's program for applying diff output.
patch became a standard Unix packaging primitive because source distributions could ship small textual changes instead of whole replacement trees. GNU patch's support for unified diffs, reject files, backup naming, and POSIX/GNU build conventions made it fit naturally into Autotools-era source packages and distribution build recipes.
The GNU diffutils manual shows the common form `patch <patchfile`, with optional original-file and patch-file arguments. If no patch file is supplied, patch reads diff output from standard input; if no input file is supplied, it tries to infer the file to edit from leading patch text.
For package maintainers, GNU patch is infrastructure rather than just a user command. It is the tool behind downstream patch queues, source RPM and Debian patch application, vendor backports, portability fixes, and decades of email-driven source exchange before pull-request platforms normalized repository-hosted review.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
patch | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://savannah.gnu.org/projects/patch/
métadonnées d'installation
| Clé du paquet | brew:gpatch |
|---|---|
| Version | 2.8 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/gpatch |
| Page d'accueil | https://savannah.gnu.org/projects/patch/ |
| Dépôt | https://git.savannah.gnu.org/cgit/patch.git |
| Docs amont | https://savannah.gnu.org/projects/patch |
| Licence | GPL-3.0-or-later |
| Archive source | https://ftpmirror.gnu.org/gnu/patch/patch-2.8.tar.xz |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
| Précautions | 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" |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gpatch |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
gpatch
sudo port install gpatchpatch 2.8-2
Apply a diff file to an original
https://savannah.gnu.org/projects/patch/
sudo apt install patchpatch
nix profile install nixpkgs#patchpatch 2.7.6-7build3
Apply a diff file to an original
https://savannah.gnu.org/projects/patch/
sudo apt install patchpatch 2.8-r0
Utility to apply diffs to files
https://www.gnu.org/software/patch/patch.html
sudo apk add patchpatch-doc 2.8-r0
Utility to apply diffs to files (documentation)
https://www.gnu.org/software/patch/patch.html
sudo apk add patch-docpatch 2.8-4.fc44
Utility for modifying/upgrading files
https://savannah.gnu.org/projects/patch/
sudo dnf install patchpatch 2.8-1
A utility to apply patch files to original sources
https://www.gnu.org/software/patch/
sudo pacman -S patchpatch 2.8-2.3
GNU patch
https://ftp.gnu.org/gnu/patch/
sudo zypper install patchpatch
choco install patchmain/patch
scoop install main/patchGnuWin32.Patch
winget install --id GnuWin32.Patch -episte source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.