1834140 Members
2634 Online
110064 Solutions
New Discussion

swremove

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

swremove

I need to remove a patch tonight. What should I use with the swremove command? What flags?

Thanks,
BOb
UNIX IS GOOD
7 REPLIES 7
Darrell Allen
Honored Contributor
Solution

Re: swremove

Hi Bob,

You shouldn't need any flags. Just swremove PHXX_#####

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Michael Tully
Honored Contributor

Re: swremove

Hi Robert,

A lot of SA's use the command line
when installing or removing patches.
I always use the interactive part
of swinstall/swremove. It gives me
total control of what is going on.

One other piece of advice, make sure
that you have a backup/ignite tape
cut prior to any patch changes,
whether they are bootable or not.

HTH
-Michael
Anyone for a Mutiny ?
harry d brown jr
Honored Contributor

Re: swremove

Robert,

Why not just use it in interactive mode, by just typing in swremove?

live free or die
harry
Live Free or Die
Sridhar Bhaskarla
Honored Contributor

Re: swremove

Hi,

I use interactive mode to always swremove.
Non-interactive command line is also easy and gives us a warning before rebooting the system if a reboot is required.

This would be the command

swremove -x mount_all_filesystems=false PH???

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Nobody's Hero
Valued Contributor

Re: swremove

Thanks, Just wanted to be sure.
UNIX IS GOOD
Sridhar Bhaskarla
Honored Contributor

Re: swremove

Ooops.. this is the reason why one shouldn't work during the weekends..

interactive session gives us a warning before reboot if required.

Sri
You may be disappointed if you fail, but you are doomed if you don't try
James R. Ferguson
Acclaimed Contributor

Re: swremove

Hi Robert:

You don't say what patch, and that in and of itself raises lots of questions.

If you can replace the patch with a later one, which fixes your current "problem" that would be a better option. If the patch has been commited, you are stuck. Patch dependencies are also an issue, particularly in 10.x and 11.0.

You can read more about using 'swremove' for patches in the Patch management white paper:

http://docs.hp.com/hpux/pdf/5967-3578.pdf

See, particulary, page-64.

If you wish to proceed, I'd use the '-p' preview option first to better ascertain the actions that will follow:

# swremove -p -v PHCO_XXXX

Regards!

...JRF...