Solaris patch epiphany


While debugging some Solaris patch problems this week, I came across an interesting piece of information. The /usr/sbin/patchadd command that is invoked to apply a patch is actually a binary wrapper for the shell script /usr/lib/patch/patchadd:

$ strings /usr/sbin/patchadd | grep "/usr/lib/patch/patchadd"
/usr/lib/patch/patchadd /usr/lib/patch/patchadd /usr/lib/patch/patchadd

If you haven’t looked though /usr/lib/patch/patchadd, I highly recommend doing so. It contains the complete set of patch return codes, and has some useful options for controlling the patch process (setting these will most likely void patch support). Nifty!

This article was posted by Matty on 2006-03-24 00:09:00 -0400 -0400