Operating System - HP-UX
1830898 Members
3030 Online
110017 Solutions
New Discussion

checking to see if a patch is installed

 
sandra ramos
Occasional Advisor

checking to see if a patch is installed

What command is used to see if a patch is installed? I'm trying to determine if it's there or not before loading. THanks
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor

Re: checking to see if a patch is installed

Hi Sandra,

'swlist' is the command.

swlist -l patch -a state

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: checking to see if a patch is installed

swlist -i

lets you browse interactively through software.

If you want to command line it, lets say you want to see if patch PHSS_19503 is installed

swlist -l product | grep PHSS_19503

patch names are case sensitive.

also useful are the -l bundle and -a or -l state

swverify will let you check the install status of a patch.

It might be installed but not in a configured state.

swremove PHSS_19503 to get rid of it

to try again

swinstall -s /full_path/PHSS_19503.depot \* to reinstall.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: checking to see if a patch is installed

Try this command:

/usr/contrib/bin/show_patches

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bharat Katkar
Honored Contributor

Re: checking to see if a patch is installed

Hi,
#show_patches

will only work if ignite is installed and you have a PA systems.

One way to know supersedes and other dependencies of a particular PATCH is to go thr' the PHXX_yyyy.text file.

This is created when you unshar a PATCH.

Hope that help.
Regards,
You need to know a lot to actually know how little you know