This is about the shortest set of instructions I've found on how to apply a patch:
Quote:How to apply a patch in linux
Quote:
A patch can be applied by issuing the following command:
patch -p0 < patch-file
This has to be done in the correct directory. Simply look at the patch file, in the first few lines you should see something like this:
--- pixman-remap.h 22 Aug 2005 04:02:33 -0000 1.5
+++ pixman-remap.h 21 Nov 2005 19:46:40 -0000 1.7
This tells you that you will need to find the file pixman-remap.h and change to the directory containing this file before you apply the patch.
|
I'm assuming the patch file you have has a .gz extension. Run 'zcat <patch file name> | head' to see the top few lines of the file. As the example above says, it should tell you which file it proposes to patch.
Then run 'locate <filename>' using the filename from zcat, and that should give you the entire path to that file. Put the patch file in the same folder, cd into that folder, and as root run the patch command as given above, substituting the patch file name in place of patch-file.