patch :linux patch 打补丁

1, 生成patch 文件

    diff -crN  abcdef.py  getting.py > xfire-patch.diff

2,打补丁 操作

     patch  -p0 < xfire-patch.diff 

3,校验MD5

    root@HSCloudNode001:/opt# md5sum abcdef.py  getting.py 
    472d91f4ae82f78a4c5581ce56467de8  abcdef.py
    472d91f4ae82f78a4c5581ce56467de8  getting.py

你可能感兴趣的:(patch)