LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do you apply a diff patch? (https://www.linuxquestions.org/questions/linux-general-1/how-do-you-apply-a-diff-patch-529154/)

Thaidog 02-14-2007 09:43 PM

How do you apply a diff patch?
 
I've just installed Wine on my SuSE install and I'm trying to get a DirectX 7 game to play.... All I can find is a diff patch to install the direct X api.

How do you apply a "diff" patch?

wildar 02-14-2007 10:15 PM

The basic concept it to apply the 'diff' using the patch command.
Basic command syntax
Code:

$ patch -p[num] < [patchfile]
Example
Code:

$ patch -p1 < diff
Whether or not this will work for your diff file will depend on what your patching and how the diff file is written. Recommend doing 'man patch' and 'man diff' and read the manual. Would also help you to look at any README files or HOW-To's about the specific use of the diff you trying to apply.

Hope this helps.


All times are GMT -5. The time now is 11:07 PM.