ivanvoras:pkg_patch:tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ivanvoras:pkg_patch:tutorial [2010/08/12 00:04] – IvanVorasivanvoras: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 "-u" flag to pkg_patch in order to update the currently running system. The target usage scenario for the end-user is to use the "-u" flag to pkg_patch in order to update the currently running system.
 +
 +===== Creating the patch file =====
 +
 +To create the patch file ''%%apache-2.2.13-2.2.15_1.tbz%%'' (compressed, bsdiff-powered):
 +
 +<code>
 +pkg_patch -cb apache-2.2.13.tbz apache-2.2.15_1.tbz apache-2.2.13-2.2.15_1.tbz
 +</code>
 +
 +===== Applying the patch file =====
 +
 +To apply the patch file ''%%apache-2.2.13-2.2.15_1.tbz%%'' to the system having ''%%apache-2.2.13.tbz%%'' installed:
 +
 +<code>
 +pkg_patch -a apache-2.2.13-2.2.15_1.tbz
 +</code>
 +
 +===== Mass package generation =====
 +
 +To mass-generate a directory of package patches from two directories of packages containing the "old" and "new" packages (with the regular naming convention), with the intention that the patch directory be hosted as ''%%"http://ftp.freebsd.org/pub/packages/8.0-8.1/"%%'' (This link is broken):
 +
 +<code>
 +./pkg_patch -mb -r http://ftp.freebsd.org/pub/packages/8.0-8.1/ olddir newdir patchdir
 +</code>
 +
 +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:
 +
 +<code>
 +./pkg_patch -u http://ftp.freebsd.org/pub/packages/8.0-8.1/
 +</code>
  
  • ivanvoras/pkg_patch/tutorial.1281571471.txt.gz
  • Last modified: 2010/08/12 00:04
  • by IvanVoras