macOS
brew install gpatchlocal Homebrew formula metadata
sudo port install gpatchMacPorts ports tree · devel/gpatch/Portfile · ソース: api.github.com
brew
gpatch のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install gpatchlocal Homebrew formula metadata
sudo port install gpatchMacPorts ports tree · devel/gpatch/Portfile · ソース: api.github.com
sudo apk add patchAlpine Linux edge package indexes · patch · ソース: dl-cdn.alpinelinux.org
sudo apt install patchDebian stable package indexes · patch · ソース: deb.debian.org
sudo dnf install patchFedora Rawhide package metadata · patch · ソース: dl.fedoraproject.org
nix profile install nixpkgs#patchnixpkgs package indexes · patch · ソース: raw.githubusercontent.com
sudo pacman -S patchArch Linux sync databases · patch · ソース: geo.mirror.pkgbuild.com
sudo zypper install patchopenSUSE Tumbleweed package metadata · patch · ソース: download.opensuse.org
choco install patchChocolatey community package catalog · patch · ソース: community.chocolatey.org
scoop install main/patchScoop official bucket manifest trees · bucket/patch.json · ソース: api.github.com
winget install --id GnuWin32.Patch -eWindows Package Manager source index · GnuWin32.Patch · ソース: cdn.winget.microsoft.com
概要
Apply a diff file to an original
履歴
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.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
patch | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://savannah.gnu.org/projects/patch/
インストールメタデータ
| パッケージキー | brew:gpatch |
|---|---|
| バージョン | 2.8 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/gpatch |
| ホームページ | https://savannah.gnu.org/projects/patch/ |
| リポジトリ | https://git.savannah.gnu.org/cgit/patch.git |
| 上流ドキュメント | https://savannah.gnu.org/projects/patch |
| ライセンス | GPL-3.0-or-later |
| ソースアーカイブ | https://ftpmirror.gnu.org/gnu/patch/patch-2.8.tar.xz |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
| 注意点 | 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" |
レジストリ情報
| 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
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 -eソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.