tips:linux:applypatch
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | tips:linux:applypatch [2009/06/08 15:38] (current) – created erik | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== How to make and apply a patch? ====== | ||
| + | To make a patch: | ||
| + | |||
| + | < | ||
| + | diff -urN file.old file.new > file.patch | ||
| + | </ | ||
| + | |||
| + | You may need to modify the first line of the patch to match the actual file name. | ||
| + | |||
| + | To apply a patch: | ||
| + | |||
| + | < | ||
| + | patch -b < file.patch | ||
| + | </ | ||
| + | |||
| + | For more information see this [[http:// | ||
tips/linux/applypatch.txt · Last modified: by erik
