Installing the Update Installer silently
You can install the WebSphere Commerce Update Installer by using a silent method, which uses a response file. No graphical interface is required. The silent installation method can be used to automate the installation.
Before you begin
- Log on:
- As a root user
- Or as a non-root user that owns WC_installdir
- If you want to use a non-root user to install UPDI,
ensure that the non-root user owns the appropriate .profile file and consider
the following installation limitations:
- Packages that are installed by a non-root user cannot be registered through native operating system mechanisms, such as the Red Hat Package Manager (RPM) on Linux. WebSphere software registers in the installation registry file and the vpd.properties file. All installed components are fully functional despite the lack of native registration.
- If you want to upgrade a previous version of UPDI that was installed by the root user, you must use the root user. If you want to use a non-root user, you must install UPDI to a new location.
- Log on as the
root
user. - If the directory /tmp/niflog/ exists, create a backup and then remove the directory.
- Change the ownership of /home/non-root_userdir/.profile
to
non-root
user and thenon-root
user group. For example, change ownership of /home/wasuser/.profile towasuser
andwasgroup
.
- Ensure that your user profile has
*SECOFR
authority. - Set the following permissions:
- Set root user umask to 0022.
- Set non-root user umask to 0027.
- If UPDI is installed, determine the version of UPDI by running the following command:
- UPDI_installdir/bin/versionInfo.sh
- UPDI_installdir/bin/versionInfo
- UPDI_installdir/bin/versionInfo.bat
Important: You must always use the most recent version of the update installer.
Procedure
- Create a temporary directory. This temporary directory is referred to as UPDI_tempdir.
-
Obtain the latest version of the WebSphere Commerce Update Installer and
place in the UPDI_tempdir
directory.
Download the IBM i specific file to the client machine, for example, a Windows system.
- Extract the UPDI package into the UPDI_tempdir directory.
-
Navigate to the UPDI_tempdir/UpdateInstaller/ directory
and create the following file if it does not exist:
- responsefile.updiinstaller.txt
-
Edit the file and ensure that the following entries appear:
-
-OPT silentInstallLicenseAcceptance="true"
Note: This variable represents the IBM license agreement that must be accepted to proceed. If this variable is not set to true, the installation does not proceed. -
-OPT installLocation="UPDI_installdir"
Where UPDI_installdir is the path to where you want to install the Update Installer.
- For non-root user installation:
-OPT allowNonRootSilentInstall="true"
The option indicates whether you accept the limitations that are associated with installing as a non-root user. If you are installing as a non-root user and the variable is not set to "true", the installation fails.
-
- Start a Qshell session.
-
Run the following command from the
UPDI_tempdir/UpdateInstaller/ directory:
./install -options responsefile.updiinstaller.txt -silent
install -options responsefile.updiinstaller.txt
install -options responsefile.updiinstaller.txt -silent
Note: During the installation of UPDI, you might receive a warning that indicates that there is another version of UPDI on the system. A list of Update Installer locations is displayed. This list includes Update Installers for all WebSphere Software.- For root users, or users with administrative authority, it is recommended that you uninstall the
other copies of WebSphere Commerce Update Installer and install the most recent version. If the
list contains installers that are not used for WebSphere Commerce, then these installers do not
need to be uninstalled and the warning can be safely ignored.
For non-root users, do not attempt to update the existing UPDI. Install UPDI to a new directory.
- To determine whether the location specified contains an installer for WebSphere Commerce,
check the version.txt file that is found in the detected product path. For
WebSphere Commerce, this file contains the following
message:
For other WebSphere Software, the file contains the following message:WebSphere Commerce Update Installer.
Only the WebSphere Commerce Update Installer can apply maintenance to WebSphere Commerce software. Similarly, you must use the Update Installer for WebSphere Software to apply maintenance to WebSphere Application Server.IBM Update Installer for WebSphere Software.
- Verify that the installation was successful by reviewing the following log file, UPDI_installdir/logs/install/log.txt.