Using the NIM update operation
The NIM update operation updates lpp_source resources by adding and removing packages.
nim -o update -a packages=<all | list of packages with levels optional> \
[-a gencopy_flags=<flags>] ] [-a installp_bundle=<bundle_file>] \
[-a smit_bundle=<bundle_file>] [-a rm_images=<yes>] \
[-a source=<dir | device | object>] [-a show_progress=<yes | no>]
<lpp_source_object>\
The NIM update operation is also available in SMIT using the nim_update fast path.
The source attribute must be a directory or device that is local to the server of the target lpp_source resource or an existing NIM lpp_source resource. The default operation is to add packages to the target lpp_source. If the rm_images attribute is present, the operation will remove packages from the lpp_source. A user must specify either the source or rm_images attribute and must specify the packages, installp_bundle, or smit_bundle attribute, but not more than one.
Generally, the all keyword means to perform a multi-volume installation when the source is a CD-ROM. However, the update operation will only do a single volume copy (equivalent to passing the gencopy -S flag).
The default behavior for this command is to display output. To turn off the output, pass show_progress=no.
# nim -o update -a packages=all -a source=/tmp/inst.images lpp_source1 # nim -o update -a packages="bos.games 5.1.0.25 bos.sysmgt.nim" -a rm_images=yes lpp_source2