当前位置: 技术问答>linux和unix
请问linux diff patch怎么用啊?
来源: 互联网 发布时间:2016-08-29
本文导语: 我用linux 2.6.29与linux2.6.32做了个patch diff -Nur linux-2.6.29 linux-2.6.32 > linux-2.6.29.patch 然后我在linux2.6.29上打patch patch -p1 linux-2.6.29.patch #cd linux-2.6.29 #cp ../linux-2.6.29.patch ./ #patch -p1
我用linux 2.6.29与linux2.6.32做了个patch
diff -Nur linux-2.6.29 linux-2.6.32 > linux-2.6.29.patch
然后我在linux2.6.29上打patch
patch -p1 linux-2.6.29.patch
#cd linux-2.6.29
#cp ../linux-2.6.29.patch ./
#patch -p1
diff -Nur linux-2.6.29 linux-2.6.32 > linux-2.6.29.patch
然后我在linux2.6.29上打patch
patch -p1 linux-2.6.29.patch
#cd linux-2.6.29
#cp ../linux-2.6.29.patch ./
#patch -p1