Operating System - HP-UX
1826118 Members
4427 Online
109690 Solutions
New Discussion

Re: Listing Superseded Patches

 
Cossy Cosmas_2
Occasional Contributor

Listing Superseded Patches

Does anyone know how you can list a superseding patch?

For example, if I have a patch that needs to be applied I usually check for it
using the
'SWLIST -l patch -a state | grep PHCO_xxxxx' unix command.

It works quite well. However, if the patch does not appear to be on there
doesn't appear to be a straightforward way in which I can check to see if a
superseding patch has been applied negating the need for the original patch.

Does anyone know if there is an available way of doing this with the SWLIST
command?

Regards,
Cossy
3 REPLIES 3
Neil Gast_1
Frequent Advisor

Re: Listing Superseded Patches

Superseded patches don't show up in a normal swlist. Use the following command
to see patches on your system that have been superseded:

swlist -l fileset -a patch_state *.*,c=patch | grep superseded

In addition, you can do the following to determine which patch supersedes
another:

swlist -l patch -a patch_state -a supersedes *.*,c=patch | grep PHSS_12993

You would, of course, change the PHSS_12993 to your patch number. The output is
pretty messy, as you'll see.

As of today, there is no tool available that will produce a nice, readable
output showing which patches supersede which others. It would be a pretty good
test of ones scripting skills to write one. Hmmmm.

MrNeil
Dan Hull
Regular Advisor

Re: Listing Superseded Patches

Note that Neil's suggestion will only work under 11.0
The -a patch_state option is not available under 10.20.

The other problem is that if the original patch was never installed, it won't
show up in an swlist as superseeded, because it won't show up at all!

swinstall will check to see if the one you're trying to install is superseeded
by anything already on your system.


Also, instead of using grep to sort out a specific patch (or group of them),
save some typing and simply add it as an option. Examples:

# swlist -l patch -a state PHCO_19597

# swlist -l patch -a state PHSS*
Kevin Sharpley
New Member

Re: Listing Superseded Patches

There is a utility out called show_patches that displays active and superceded
patch information on 11.0 machines. You get the utility with patch:

PHCO_19550