LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Apply Patch (https://www.linuxquestions.org/questions/linux-general-1/apply-patch-531013/)

culin 02-21-2007 07:54 AM

Apply Patch
 
Hi friends,
i recently downloaded th DHCP patch "dhcp-3.0.2-gcc_3.4.3-2.patch" but when i tried to apply this patch using the command ""patch -Np1 -i dhcp-3.0.2-gcc_3.4.3-2.patch"" it asking file to patch: what to give here... when i gave the same patch file it is telling some error... please help me to apply this patch..and please tell me how to check whether a patch is successfully applied or not ..
thanks.. :)

bathory 02-21-2007 08:02 AM

You must run this command from inside the directory containing the source you want to patch and use the whole pat to your patch. I.e:
Code:

cd /directory/with-code/to/patch
patch -Np1 -i /path/to/dhcp-3.0.2-gcc_3.4.3-2.patch



All times are GMT -5. The time now is 03:52 PM.