4.4.2 Using smitty
During and after the installation, there are four major actions that can be taken with optional software products and service updates. Optional software and service updates can be applied, committed, rejected, and removed.
When a service update is installed, it enters the applied state and becomes the currently active version of the software. When an update is in the applied state, the previous version is stored in the /usr/lpp/PackageName directory so that if you want to return to the former version, you can do so without having to reinstall it. Use installp -s to get a list of all products and updates in the applied state.
When you commit software, the saved files from all previous versions of the software product are removed from the system, thereby, making it impossible to return to the previous version of the software product. Use installp -ac to commit the software at installation time. You can also commit installed software or software updates in the applied state by using SMIT. SMIT gives you a list of products in the applied state. You can optionally choose to select one software update or select all to commit all the software updates that are in the applied state.
In order to commit an applied software update, use the SMIT fast path:
A screen similar to Figure 22 is
Figure 22: Commit Software Updates
installp -Cox all
When you reject an applied service update, the update's files are deleted, and the Software Vital Product Data database information is changed to indicate that the update is no longer on the system. The previous version of the system is restored and becomes the active version of the software. In order to reject a service update that you have installed, use the SMIT fast path:
A screen similar to Figure 23 is
Figure 23: Rejecting Software Updates
This will remove the software update files from the system, restore the previous version files, and update the Software Vital Product Data database.
You can also achieve the same objective using the installp command. On the command line, enter:
installp -rBpX -f <File Name>
where <File Name> is the name of the file that contains a list of software updates that you want to reject. You will have to create this file manually using any editor of your choice.
You can also remove a software product completely. When a software product is removed, all product files are removed from the system, and the Software Vital Product Data database is changed to indicate that the product is removed. Once a product is removed, there will no longer be a version of that product running on the system. You can remove software by using the SMIT fast path:
A screen similar to Figure 24 is
Figure 24: Removing Software
You can also remove the software using the command line. On the command line, enter:
installp -ugp -V2 -f <File Name>
where <File Name> is a user-created file that will contain the names of the software that you want to remove.
4.6 Maintaining Optional
Software (Applying Updates)