第一步,獲取到patch檔案,例如
deprecated_each2925449-106.patch (
第二步,把布丁檔案放到正確的目錄下。
例如,上面這個布丁是核心補丁,開啟檔案看見第一行:
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
那就把檔案放到根目錄下,includes/是其子目錄。通常,模組的補丁是放到模組的根目錄下。
第三步,打patch
patch -p1 < deprecated_each2925449-106.patch
這樣就完成了。 給Linux核心打patch
patch b b prefix f l n r s v c e n d directory d define f number i patchfile o outfile p number r rejectfile x number originalfile patchfile 常使用的 patc...
給hadoop 0 20 2打patch補丁
1.生成hadoop patch 單檔案 diff u from file to file 多檔案 diff unr from dir to dir to dir.patch 2.在hadoop根目錄下安裝patch patch p0 hadoop 0.20.2 v1382.patch 3.如果需要...
生成patch和打patch
單個檔案 diff un ori file mdf file mdf file.patch 生成patc 件 patch p0 mdf file.patch 將patch修改應用到源 patch re p0 mdf file.patch 回退patch的修改多個檔案 diff unr ori dir...