1836576 Members
1703 Online
110102 Solutions
New Discussion

swremove and swinstall

 
SOLVED
Go to solution
Bruno Peuto
Occasional Contributor

swremove and swinstall

Is it possible install and remove patch whith only one boot ?
8 REPLIES 8
Ian Dennison_1
Honored Contributor

Re: swremove and swinstall

Do you mean ' is it possible to install or remove multiple patches with only 1 boot?'

swcopy -s /tmp/PHXX_99999.depot -x enforce_dependencies=false -x mount_all_filesystems=false \* @ /var/spool/newdepot

Do the above command for every patch, then perform one swinstall from /var/spool/newdepot and you will only require one reboot.

Share and Enjoy! Ian
Building a dumber user
Armin Feller
Honored Contributor

Re: swremove and swinstall

You are able to install more patches in one swinstall session. And also remove more patches in one swremove session.

Installation:
copy all downloaded patches under /tmp/patches in one single depot:

# for in /tmp/patches/PH??_*
> do
> sh $i (only if not in depot format)
> swcopy -s $i.depot \* @ /var/patch_depot
> done
# swinstall -x patch_match_target=true -x autoreboot=true -s /var/patch_depot \*

Removing:
# swremove &

that will open a GUI and you can select all patches you want to remove.

Regards ...
Armin
Bruno Peuto
Occasional Contributor

Re: swremove and swinstall

I wont to do in one step both operation remove and install the patch on the system.

By
Ian Dennison_1
Honored Contributor

Re: swremove and swinstall

You want to remove 1 patch and install another? Or remove and add the same patch?

If you want to re-install the same patch, use the 'reinstall patch' option in the swinstall options.

I don't think you can perform a swremove and a swinstall in the same session, due to the kernel builds that take place, and the fact that swinstall may do some work on bootup to resolve patching issues it could not resolve on the initial install eg. files locked, actions that require single user access.

Why exactly do you want to achieve this?

Share and Enjoy! Ian
Building a dumber user
Bruno Peuto
Occasional Contributor

Re: swremove and swinstall

I wont remove 2 patch and at the same instance install a bundle whith the other patchs whith only one boot, isn't possible ?
Pete Randall
Outstanding Contributor
Solution

Re: swremove and swinstall

Sorry, Bruno - no can do.

Pete

Pete
Ian Dennison_1
Honored Contributor

Re: swremove and swinstall

No its not possible.

Share and Enjoy! Ian
Building a dumber user
Bruno Peuto
Occasional Contributor

Re: swremove and swinstall

thanks, regards !