FreeKB - IBM Liberty Install IBM Liberty application server on Linux on the command line
IBM Liberty - Install IBM Liberty application server on Linux on the command line

If you have not installed IBM Installation Manager, install IBM Installation Manager

Install from IBM HTTP repository

When installing WebSphere Liberty application server via the command line, IBM recommends installing the application server from the IBM HTTP repository instead of from a local repository, as this ensures that the latest installation files are used during the install.

List the available packages. The -prompt option is used to get a prompt to provide your IBM username and password.

~]# cd /opt/IBM/InstallationManager/eclipse/tools/
~]# ./imcl listAvailablePackages -repositories -prompt


You can view the license before you install Liberty.

Install the Liberty package. Your IBM username and password will be stored in a secure storage file, which is usually located at /var/ibm/InstallationManager/secure_storage. If you have not yet created the secure storage file, you can use the -prompt option to create the secure storage file. Or, you can manually create the secure storage file. The secure storage file will be protected by a master password. If you use the -prompt option, you will need to type in the master password. Or, you can create the master_password.txt file and store the master password in the master_password.txt.

~]# ./imcl install
  -installationDirectory /opt/IBM/WebSphere/Liberty
  -sharedResourcesDirectory /opt/IBM/IMShared
  -prompt or -masterPasswordFile /var/ibm/InstallationManager/master_password.txt


Install from local repository

Installing offering from a local repository is nearly identical to installing from IBM HTTP repository, except you would download the products you want to install from Fix Central or using the Packaging Utility. If installing version 9 of WebSphere, don't forget to download Java JDK. After the packages have been downloaded, you will unzip the packages to a location on your server, such as /tmp/was and /tmp/java. Then, you can use /tmp/was and /tmp/java in the install command.

~]# ./imcl install
  -repositories /tmp/was,/tmp/java  
  -installationDirectory /opt/IBM/WebSphere/Liberty
  -sharedResourcesDirectory /opt/IBM/IMShared
  -prompt or -masterPasswordFile /var/ibm/InstallationManager/master_password.txt


Install from response file

A request file is an XML file that contains details regarding the product being installed, such as the offering ID and the installation directory. Create the response file.

~]# touch /opt/IBM/response_file.xml


Add the following text to the response_file.xml. In this example, liberty is installed.

<?xml version="1.0" encoding="UTF-8"?>
    <variable name='sharedLocation' value='/opt/IBM/IMShared'/>

    <repository location="" />

  <profile id='IBM WebSphere Application Server V8.5' installLocation='/opt/IBM/WebSpere/Liberty'>
    <data key='user.import.profile' value='false'/>
    <data key='' value='en'/>

  <install modify='false'>
    <offering id='' 
      profile='IBM WebSphere Application Server V8.5' 
      features='core.feature,ejbdeploy,thinclient,embeddablecontainer' installFixes='none'/>


You can create a response file by issuing the following command, which will launch the Installation Manager GUI, so this must be done in a graphical environment. Follow the steps on installing WebSphere using the GUI.

~]# cd /opt/IBM/InstallationManager/eclipse
~]# ./IBMIM -record /path/to/response.xml -skipInstall /opt/IBM


Install the application server.

./imcl input /opt/IBM/response_file.xml 
  -secureStorageFile /var/ibm/InstallationManager/secure_storage
  -masterPasswordFile /var/ibm/InstallationManager/master_password.txt


Post installation

The websphere_installation_directory/logs/install/log.txt file can be reviewed to ensure the installation was successful.

The listInstalledPackages command can be used to see what packages are installed.. In this example, Liberty was installed.

~]# ./imcl listInstalledPackages


The utility can be used to verify that the application server was successfully installed.

~]# /opt/IBM/WebSphere/AppServer/bin/
. . .
Installed Product
Name              IBM WebSphere Liberty Application Server
ID                Base
. . .

After the application server is installed, you will create a profile.

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter b69bd in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |