For When You Can't Have The Real Thing
[ start | index | login ]
start > patch

patch

Created by dave. Last edited by dave, 15 years and 154 days ago. Viewed 3,180 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
How To Use Patch

The normal process is something like this :

cd to the top level directory for the software distribution

execute the patch command

patch -p0 < patch_file_name
(where patch_file_name is the name of the patch file you downloaded)

recompile, and reinstall the binary

Sometimes you have to do

patch -p 1 < patch_file_name

...instead (for example if you have a git-sourced diff and you are not importing it into a git repository).

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt