You can perform a non-interactive installation of the IBM® MQ client using the swinstall command. A non-interactive installation is also known as a silent, or unattended installation.
Before you begin
Before you start the installation procedure, make sure that
you have completed the necessary steps outlined in Preparing the system.
About this task
This topic describes the non-interactive installation of a client, using the swinstall program to select which components you want to install. The components and are listed in Choosing what to install ; you must install at least the Runtime and client components.
Procedure
-
Log in as root, or switch to the superuser using the su command.
-
Make your current directory the location of the installation file. The location might be the mount point of the CD, a network location, or a local file system directory.
-
Accept the IBM MQ license agreement without an interactive prompt by entering the following command:
-
Install IBM MQ using the swinstall command:
-
If this installation is not the first installation on the system, you must add
-x allow_multiple_versions=true
to the swinstall command.
-
Add the names of the components to install as parameters of the swinstall command.
The installer automatically resolves any dependencies.
- Optional:
Identify the installation location by adding
,l= MQ_INSTALLATION_PATH
as a parameter of the swinstall command. For each installation, all of the IBM MQ components that you require must be installed in the same location.
The installation path specified must either be an empty directory, the root of an unused file system, or a path that does not exist. The length of the path is limited to 256 bytes and must not contain spaces.
For example, to install all
IBM MQ components, in a non-default location, as the first installation, enter the following command:
swinstall -s /installation_file.v11 MQSERIES,l=/opt/customLocation
To
perform a partial installation, providing a list of components, in
the default location, as the second installation, enter the following
command:
swinstall -s /installation_file.v11
MQSERIES.MQM-RUNTIME MQSERIES.MQM-BASE MQSERIES.MQM-CL-HPUX -x allow_multiple_versions=true
/installation_file.v11
is the absolute path to the installation file. The path must begin with a
/
and end with the name of the installation file. The installation file has the extension
.v11
.
-
If this installation is not the first installation on the system, you must enter the following command:
swconfig -x allow_multiple_versions=true MQSERIES,l= MQ_INSTALLATION_PATH
where
MQ_INSTALLATION_PATH
is the path where you have just installed
IBM MQ. If you do not enter this command, the
swlist command reports the installation as installed instead of configured. You must not use
IBM MQ unless the installation is configured.
What to do next
For instructions on how to verify your installation, see Verifying a client installation.