1832297 Members
2142 Online
110041 Solutions
New Discussion

Re: swremove -p

 
SOLVED
Go to solution
Michael Campbell
Trusted Contributor

swremove -p

Folks

Will swremove -p definitely tell me if there are any other patches depending on the patches that I am uninstalling?

Regards

Michael
1 REPLY 1
S.K. Chan
Honored Contributor
Solution

Re: swremove -p

It'll tell you or rather stop you from removing a patch that is a dependency for another patch. For example ..
# swremove -f PHCO_24839
==> Right at the end I have to run swjob to look at the log file ..
# swjob -a log -0032 @ :/
and the it shows ..
.....
* Target logfile:
* The fileset "PHSS_26493.CDE-RUN,l=/,r=1.0" requires the selected fileset "PHCO_24839.CORE SHLIBS,l=/,r=1.0" as a corequisite.
ERROR: The dependencies for fileset "PHCO_24839.CORE-SHLIBS,l=/,r=1.0" cannot be resolved (see previous lines). You must resolve the above dependencies before operating on this fileset or change the "enforce_dependencies" option to "false".
ERROR: 1 of 1 filesets had Errors.
....
If I try to remove PHCO_24839 it'll fail because patch PHSS_26493 depends on it (unless you set "enfore_dependencies" to false, which it not advisable).