+

Search Tips   |   Advanced Search

Install Liberty on distributed operating systems using response files

We can WAS Liberty Core using Installation Manager response files.

Prepare each of the systems onto which to install the offering as described in Install Installation Manager and prepare to install Liberty.

Use Installation Manager, we can work with response files to install the offering in a variety of ways. We can record a response file using the GUI as described in the following procedure, create a new response file, or copy and modify an existing response file.

To install v8.5.5.4 and later of the Liberty profile requires IBM Installation Manager v1.6.2 or later.

  1. Optional: Record a response file to install the offering.

    On one of the systems, perform the following actions to record a response file that can install the offering.

    1. From a command line, change to the eclipse subdirectory in the directory where you installed Installation Manager.

    2. Start Installation Manager from the command line using the -record option.

      For example:

      • Administrator or non-administrator:

        IBMIM.exe -skipInstall "C:\temp\imRegistry" 
          -record C:\temp\install_response_file.xml

      • Administrator:
        ./IBMIM -skipInstall /var/temp/imRegistry 
          -record /var/temp/install_response_file.xml

      • Non-administrator:
        ./IBMIM -skipInstall user_home/var/temp/imRegistry 
          -record user_home/var/temp/install_response_file.xml

      When we record a new response file, we can specify the -skipInstall parameter. Using this parameter has the following benefits:

      • No files are actually installed, and this speeds up the recording.

      • If we use a temporary data location with the -skipInstall parameter, Installation Manager writes the installation registry to the specified data location while recording. When we start Installation Manager again without the -skipInstall parameter, we then can use the response file to install against the real installation registry.

        Do not use the -skipInstall operation on the agent data location used by Installation Manager. This is unsupported. Use a clean writable location, and reuse that location for future recording sessions.

      For more information, read the IBM Installation Manager Information Center.

    3. Follow the instructions described in Install Liberty on distributed operating systems using the GUI.

  2. Optional: Create a credential-storage file for installation. If we are using an authenticated remote repository, we can store credentials for URLs that require authentication, such as remote repositories, in a credential-storage file. For IBM Installation Manager v1.6.2 and later, use the -secureStorageFile and -masterPasswordFile options to store credentials in a credential-storage file. For previous versions of Installation Manager, the -keyring and -password options are used to access credentials in a keyring file. These options are deprecated in v1.6.2. There is no migration path from keyring files to storage files because of the differences in the file structures.

  3. Use the response files to install the offering.

    Go to a command line on each of the systems on which to install the offering, change to the eclipse/tools subdirectory in the directory where you installed Installation Manager, and install the offering.

    For example:

    • Administrator or non-administrator:

      imcl.exe -acceptLicense 
        input C:\temp\install_response_file.xml 
        -log C:\temp\install_log.xml 
        -secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password_file.txt

    • Administrator:
      ./imcl -acceptLicense 
        input /var/temp/install_response_file.xml 
        -log /var/temp/install_log.xml 
        -secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password_file.txt

    • Non-administrator:
      ./imcl -acceptLicense 
        input user_home/var/temp/install_response_file.xml 
        -log user_home/var/temp/install_log.xml 
        -secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password_file.txt

    • The relevant terms and conditions, notices, and other information are provided in the license-agreement files in the lafiles or offering_name/lafiles subdirectory of the installation image or repository for this offering.

    • The program might write important post-installation instructions to standard output.

    Read the IBM Installation Manager Information Center for more information.


Example

The following is an example of a response file for installing the offering.

<?xml version="1.0" encoding="UTF-8"?>
<agent-input clean="true" temporary="true">
<server>
<repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85" />
</server>
<install modify='false'>
<offering id='com.ibm.websphere.liberty.v85' 
  profile='WebSphere Liberty V8.5' 
  features='embeddablecontainer' installFixes='none'/>
</install>
<profile id='WebSphere Liberty V8.5' 
  installLocation='C:\Program Files\IBM\WebSphere\Liberty'>
</profile>
</agent-input>

If we are installing on a 64-bit system, we must include one of the options for an IBM Software Development Kit.

To disable remote searches for updates in the response file, set the following preferences to false:

For example:

<preference value='false' name='offering.service.repositories.areUsed'/>
<preference value='false' name='com.ibm.cic.common.core.preferences.searchForUpdates'/>
We can find more details on silent preference keys in the IBM Installation Manager Information Center.

The following examples show you how to change response file in order to perform alternative actions.


Parent topic: Install Liberty on distributed operating systems

Tasks:
Install Installation Manager and prepare to install Liberty
Install Liberty on distributed operating systems using the GUI
Install Liberty on distributed operating systems using the command line
Add and remove features from Liberty on distributed operating systems
Uninstall Liberty from distributed operating systems using the GUI
Uninstall Liberty from distributed operating systems using the command line
Uninstall Liberty from distributed operating systems using response files
Upgrading Liberty on distributed operating systems using the GUI
Create custom installation repositories with IBM Packaging Utility
Use the launchpad to start Liberty installations




Terms and conditions for information centers