Operating System - HP-UX
1826247 Members
2942 Online
109692 Solutions
New Discussion

From command line, can I find out which patches are superseded by a given patch?

 
SOLVED
Go to solution
Doug Kratky
Frequent Advisor

From command line, can I find out which patches are superseded by a given patch?


From command line, can I find out which patches are superseded by a given patch?

For example, a DBA wants patch PHCO_23441. That patch has never been installed, but a patch that supersedes it (PHSS_26263) has. Right now, I have to manually search through ITRC and compare README files to what I have installed on the system. Ideally I'd like to only have to run a command that tells me what patches have been superseded by PHSS_26263.




8 REPLIES 8
Victor_5
Trusted Contributor
Solution

Re: From command line, can I find out which patches are superseded by a given patch?

Yes, you can:

swlist -v -l fileset > /tmp/swlist.report

view /tmp/swlist.report

Use the "search" feature of view, when you find that patch, scroll up and down, you will find the related details info.
Steve Steel
Honored Contributor

Re: From command line, can I find out which patches are superseded by a given patch?

Hi


swlist -l fileset -a title -a revision -a state -a patch_state -a superseded_by


This will cover the system and give you it all


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Stefan Farrelly
Honored Contributor

Re: From command line, can I find out which patches are superseded by a given patch?



swlist -v -l fileset |grep PH| grep superseded

And add on the end another | grep PHSS_26263

To list all those patches superceeded by it.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Bill McNAMARA_1
Honored Contributor

Re: From command line, can I find out which patches are superseded by a given patch?

Try
swlist -l patch -a install_date | more
(attention on sort)

Later,
Bill
It works for me (tm)
Stefan Farrelly
Honored Contributor

Re: From command line, can I find out which patches are superseded by a given patch?


Anyway, if your DBA is asking you to install a superseded patch then tell me not to be stupid - its already been replaced by a more uptodate patch from HP.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Sajid_1
Honored Contributor

Re: From command line, can I find out which patches are superseded by a given patch?

Hi,

This will do the task:
# swlist -v -l fileset | grep PHSS_26263

If needed, add another grep for 'supersedes'
learn unix ..
Chris Wilshaw
Honored Contributor

Re: From command line, can I find out which patches are superseded by a given patch?

You can also do

cd /var/adm/sw/products/
grep supersedes */INDEX | sort -u

eg:

cd /var/adm/sw/products/PHSS_19866
grep supercedes */INDEX | sort -u

C-ENG-A-MAN/INDEX:supersedes PHSS_13415.C-ENG-A-MAN,fr=*
C-ENG-A-MAN/INDEX:supersedes PHSS_14245.C-ENG-A-MAN,fr=*
C-ENG-A-MAN/INDEX:supersedes PHSS_14580.C-ENG-A-MAN,fr=*
C-ENG-A-MAN/INDEX:supersedes PHSS_15252.C-ENG-A-MAN,fr=*
C-ENG-A-MAN/INDEX:supersedes PHSS_15316.C-ENG-A-MAN,fr=*
C-ENG-A-MAN/INDEX:supersedes PHSS_16181.C-ENG-A-MAN,fr=*
C-ENG-A-MAN/INDEX:supersedes PHSS_16404.C-ENG-A-MAN,fr=*
C-ENG-A-MAN/INDEX:supersedes PHSS_16540.C-ENG-A-MAN,fr=*
C-ENG-A-MAN/INDEX:supersedes PHSS_16841.C-ENG-A-MAN,fr=*
C-ENG-A-MAN/INDEX:supersedes PHSS_17571.C-ENG-A-MAN,fr=*
C-ENG-A-MAN/INDEX:supersedes PHSS_17825.C-ENG-A-MAN,fr=*
C-ENG-A-MAN/INDEX:supersedes PHSS_18072.C-ENG-A-MAN,fr=*

Chris
Doug Kratky
Frequent Advisor

Re: From command line, can I find out which patches are superseded by a given patch?


Thanks for the qucik help! The "swlist -v -l fileset" was exactly what I needed.