patch
1.1、patch简介
是什么 ?:a tool for modifying or creating files by applying a “patch” file typically created by the diff program.
开发语言:C
官方主页:https://www.gnu.org/software/patch
1.2、通过包管理器安装patch
操作系统包管理器安装命令
Windowsscoopscoop install patch
WindowsChocolateychoco install -y patch
macOSHomeBrewbrew install patch
GNU/LinuxLinuxBrewbrew install gpatch
aptsudo apt-get install -y patch
CentOSyumsudo yum install -y patch
dnfsudo dnf install -y patch
openSUSEzyppersudo zypper install -y patch
Alpine Linuxapksudo apk add patch

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm patch
1.3、通过编译源码安装patch 

step1、安装依赖

下载时cURL
解压时tarxz
编译时POSIX shGNU CoreUtilsGNU makeGCC ( gcc )   | LLVM / Clang
运行时glibc ( libc.sold-linux-x86-64.so )

step2、使用curl命令下载patch源码包 (

curl -LO https://mirrors.tuna.tsinghua.edu.cn/gnu/patch/patch-2.7.6.tar.xz

step3、使用tar解压patch源码包

tar vxf patch-2.7.6.tar.xz

step4、进入patch-2.7.6目录,并查看它的内容

step5、配置、编译、安装

./configure && make && sudo make install
1.4、patch命令