Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to reject all APPLIED packages fast not one by one?

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
0
0
PL
any idea?
 
I haven't tested this but this should work (recommend testing on a test system first):

Code:
lslpp -lc |awk -F: '{if($5=="APPLIED"){system("installp -r " $2)}}'

Regards,
Chuck
 
You can use the "all" keyword provided that it's specified within a file. I strongly recommend doing a dry run first in preview mode and check for any errors, depedencies, etc, eg:

echo all > /tmp/a
installp -rpf /tmp/a

then if all is OK run

installp -rf /tmp/a

I don't know what AIX version you're running but I have found that when attempting to reject lots of filesets (such as complete maintenance levels) in later versions of AIX invariably result in lots of filesets being left in a broken state. Make sure you take a mksysb and any other backups first!!!

Hope this helps...

Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top