Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| ivanvoras:pkg_patch:tutorial [2010/08/12 00:04] – IvanVoras | ivanvoras:pkg_patch:tutorial [2020/10/31 01:29] (current) – Remove 1 broken link. SashaVigole | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| The target usage scenario for the end-user is to use the " | The target usage scenario for the end-user is to use the " | ||
| + | |||
| + | ===== Creating the patch file ===== | ||
| + | |||
| + | To create the patch file '' | ||
| + | |||
| + | < | ||
| + | pkg_patch -cb apache-2.2.13.tbz apache-2.2.15_1.tbz apache-2.2.13-2.2.15_1.tbz | ||
| + | </ | ||
| + | |||
| + | ===== Applying the patch file ===== | ||
| + | |||
| + | To apply the patch file '' | ||
| + | |||
| + | < | ||
| + | pkg_patch -a apache-2.2.13-2.2.15_1.tbz | ||
| + | </ | ||
| + | |||
| + | ===== Mass package generation ===== | ||
| + | |||
| + | To mass-generate a directory of package patches from two directories of packages containing the " | ||
| + | |||
| + | < | ||
| + | ./pkg_patch -mb -r http:// | ||
| + | </ | ||
| + | |||
| + | This will generate the patches from found files and create the patch index file referencing the above URL. This index file describes available patches and the URL from which to get them. | ||
| + | |||
| + | ===== Automatic updates with new patches ===== | ||
| + | |||
| + | To compare the currently installed packages with the list of package patches generated in the last step and update available packages with patches: | ||
| + | |||
| + | < | ||
| + | ./pkg_patch -u http:// | ||
| + | </ | ||