install_all_updates Command

Purpose

Updates installed software to the latest level on media and verifies the current recommended maintenance or technology level.

Syntax

install_all_updates -d Device [ -p ] [ -i ] [ -c ] [ -r ] [ -n ] [ -s ] [ -x ] [ -v ] [ -N ] [ -S ] [ -Y ] [ -V ] [ -D ]

Description

install_all_updates examines currently installed software and attempts to update it to the latest level that is available on the media. install_all_updates will not install any filesets that are present on the media, but not installed on the system except in the following situations:
  • the new filesets are installed as requisites of other filesets.
  • the /var/adm/ras/bosinst.data filesets ALL_DEVICES_KERNELS to yes.
For installp images, all installp requisites are enforced.
Note:
  1. Currently, install_all_updates processes installp images and rpm images. Because the rpm utility does not support automatic installation of requisites, some rpm software may not be installable with install_all_updates.
  2. install_all_updates verifies the current recommended maintenance or technology level by using the "oslevel" utility and checking with the latest recommended maintenance or technology level known to this version of install_all_updates.
  3. If install_all_updates locates an update to the install utilities (the bos.rte.install fileset), it first installs the update and then reinvokes itself to process the remaining updates. The "-i" flag can be used to update the install utilities only, this is useful when attempting to view an accurate preview.
  4. install_all_updates applies all installp updates unless the COMMIT flag (-c) is specified. For more information of APPLY vs. COMMIT please see the installp man page.
  5. install_all_updates will by default instruct installp to automatically install requisites and to do any necessary file system expansions. The "-n" will override the install requisite default, and "-x" will override the file system expansion default.
  6. The following flags apply to installp updates only: -c, -n, -x, -v, -S, and -V.
  7. Any library or executable program updated by an interim fix or service update which is in use by an active process will not be reflected in that process unless it is restarted. For example, an update that changes the ksh will not have the changes reflected in any ksh processes that are already running. Likewise, an update to the libc.a library will not be reflected in any process that is already running. In addition, any process that is using a library and does a dlopen operation of the same library after the library has been updated could experience inconsistencies if it is not restarted.
  8. If an attempt is made to update a fileset that is locked by the interim fix manager (the emgr command), a notice will be displayed indicating which filesets are locked. The lslpp command shows that any locked filesets are in the EFIXLOCKED state.
  9. If an attempt is made to update a fileset that has an installed build date more recent than the build date of the selected fileset, a message will be displayed to indicate this. For more information about build dates, see Checking fileset build dates in AIX® Version 7.1 Installation and migration.

Flags

Item Description
-c Instructs installp to commit all newly installed updates. Updates are applied by default (Please see the installp man page for more explanation on applying vs. committing updates).
-d Device Specifies where the installation media can be found. This can be a hardware device such as tape or cdrom or it can be a directory that contains installation images. When installation media is a tape device it should be specified as no-rewind-on-close and no-retension-on-open.
-D Turns on install_all_updates debug output. This flag is for debugging the install_all_updates utility and should not be used for normal operations.
-i Update install utilities only.
-n Instructs installp to not automatically install requisites. Automatic installation of requisites is the default behavior.
-N Skip updating install utilities first.
Note: This flag is not recommended unless you are debugging a related problem.
-p Performs a preview of an action by running all preinstallation checks for the specified action. No software changes are made.
-r Update rpm images (if possible). This flag is not set by default.
-s Skip recommended maintenance or technology level verification. The verification is performed by default.
-S Instructs installp to suppress multi-volume processing of cdrom media.
-v Instructs installp to verify that all installed files in the fileset have the correct checksum value after the installation. This operation may require more time to complete the installation.
-V Instructs installp to run in verbose output mode.
-x Instructs installp to not automatically expand file systems. Automatic expansion of file systems is the default.
-Y Agrees to all software license agreements which are required for software installation.

Exit Status

0
All lppmgr related operations completed successfully.
>0
An error occurred.

Security

Only the root user can execute install_all_updates.

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in AIX Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  1. To install all installp updates on device /dev/cd0 and to verify the current recommended maintenance or technology level, enter:
    install_all_updates -d /dev/cd0
  2. To commit install all installp updates and install any installable rpm updates in directory /images, enter:
    install_all_updates -d /images -rc
  3. To install the latest level of install utilities on device /dev/cd0 (bos.rte.install installp fileset), enter:
    install_all_updates -d /dev/cd0 -i

Files

Item Description
/usr/sbin/install_all_updates Contains the install_all_updates command.