Viewing Solaris patches with patchadd


The Solaris patchadd utility is well known for being able to apply a patch to a system, but few people know that it has a nifty “-p” (print installed patches) option to print the list of installed patches:

$ patchadd -p

Patch: 118996-02 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu SUNWhea
Patch: 118868-01 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu
Patch: 119687-01 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu
Patch: 119042-02 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu
Patch: 117461-04 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu SUNWcsl SUNWtoo SUNWcslr SUNWhea
[ ...... ]

I recon ‘showrev -p’ is used a bit more frequently, since this is what the official patch documentation uses to list installed patches. It’s the little things in life that make you the happiest. :)

This article was posted by Matty on 2006-05-18 19:49:00 -0400 -0400