[V9.1.0 Jul 2018][Linux]

Installing an IBM MQ server on Linux Ubuntu using Debian packages

You can install an IBM® MQ server on a Linux® Ubuntu system, using a Debian installer, in accordance with the system requirements web page.

Before you begin

See System Requirements for IBM MQ for details of the supported software levels.

Before you start the installation procedure, make sure that you first complete the necessary steps that are outlined in Preparing the system on Linux.

If you have installed IBM MQ 9.0.2, or earlier, on Ubuntu using rpm, you must uninstall all rpm versions of the product before installing the Debian version of the product.

[V9.1.5 Apr 2020]From IBM MQ 9.1.5 you have the option to accept the license before or after product installation. See License acceptance on IBM MQ for Linux for more information.
Note: For Long Term Support and Continuous Delivery releases before IBM MQ 9.1.5, you must accept the terms of the license agreement before you can proceed with the installation. To do this, run the mqlicense.sh script

About this task

Install the server by using a Debian installer to select the components that you want to install. The components and package names are listed in IBM MQ Debian components for Linux Ubuntu systems.
Attention: Ensure that you download the Ubuntu version of the tar.gz package, before you install the product, as this version contains the deb files you need for the apt tool.
You can use various installers. This topic describes the use of the apt and dpkg installers.
apt
You can use the apt tool to install packages, and you do not need to install any dependent packages. The apt tool installs dependency packages for the package that you require.
You must make your files accessible to the apt tool, in order to use it.

To do this, issue the command, chmod -R a+rx DIRNAME, where DIRNAME is the directory into which you unpacked the tar.gz package.

Attention: If you do not make your files accessible to the apt tool, you receive the following errors:
  • N: Download is performed unsandboxed as root as file '/sw/9101deb/./InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
  • E: Failed to fetch file:/sw/9101deb/./Packages File not found - /sw/9101deb/./Packages (2: No such file or directory)
  • E: Some index files failed to download. They have been ignored, or old ones used instead.
where /sw/9101deb is the directory from which you are installing IBM MQ.
dpkg
You can use dpkg to install individual packages, but you must ensure you install any dependencies as dpkg does not install any dependent packages for the package you require. Refer to the Table 1 table for information about the dependencies of each package.

To support the running of a queue manager, you must install at least the ibmmq-runtime and the ibmmq-server components.

Table 1. Package component dependencies
Package Name Component Function Package Dependencies
ibmmq-runtime Common function for all other components None
[Long Term Support]ibmmq-server [Long Term Support]Queue Manager [Long Term Support]ibmmq-runtime
[V9.1.0.5 Apr 2020]ibmmq-server [V9.1.0.5 Apr 2020]Queue Manager [V9.1.0.5 Apr 2020]ibmmq-runtime

ibmmq-gskit

[Long Term Support]ibmmq-client [Long Term Support]C IBM MQ client libraries [Long Term Support]ibmmq-runtime
[V9.1.0.5 Apr 2020]ibmmq-client [V9.1.0.5 Apr 2020]C IBM MQ client libraries [V9.1.0.5 Apr 2020]ibmmq-runtime

ibmmq-gskit

ibmmq-java Java and JMS IBM MQ APIs ibmmq-runtime
ibmmq-jre Java Runtime Environment ibmmq-runtime
ibmmq-sdk Header files and libraries for non-Java APIs ibmmq-runtime
ibmmq-man UNIX man pages for IBM MQ ibmmq-runtime
ibmmq-samples IBM MQ application samples ibmmq-runtime

ibmmq-msg-cs

ibmmq-msg-de

ibmmq-msg-es

ibmmq-msg-fr

ibmmq-msg-hu

ibmmq-msg-it

ibmmq-msg-ja

ibmmq-msg-ko

ibmmq-msg-pl

ibmmq-msg-pt

ibmmq-msg-ru

ibmmq-msg-zh-cn

ibmmq-msg-zh-tw

Additional language message catalog files. English message catalog files are installed by default. For more information about these message catalogs, see Displaying messages in your national language on Linux ibmmq-runtime
ibmmq-mqexplorer

IBM MQ Explorer. Only on Linux x86-64 systems.

ibmmq-runtime

ibmmq-jre

ibmmq-gskit

IBM Global Security Kit

ibmmq-runtime
ibmmq-web

REST API and IBM MQ Console.

ibmmq-runtime

ibmmq-server

ibmmq-java

ibmmq-jre

ibmmq-ftbase Managed File Transfer component

ibmmq-runtime

ibmmq-java

ibmmq-jre

ibmmq-ftlogger Managed File Transfer component

ibmmq-runtime

ibmmq-server

ibmmq-ftbase

ibmmq-java

ibmmq-jre

ibmmq-fttools

ibmmq-ftagent

Managed File Transfer components

ibmmq-runtime

ibmmq-ftbase

ibmmq-java

ibmmq-jre

ibmmq-ftservice Managed File Transfer component

ibmmq-runtime

ibmmq-server

ibmmq-ftagent

ibmmq-ftbase

ibmmq-java

ibmmq-jre

ibmmq-amqp

Advanced Message Queuing Protocol component

ibmmq-runtime

ibmmq-xrservice
Telemetry Service component
Note: The telemetry service is only available on Linux for x86-64 (64 bit) and Linux for IBM Z.

ibmmq-runtime

ibmmq-ams

Advanced Message Security component

ibmmq-runtime

ibmmq-server

ibmmq-sfbridge (Deprecated) Install the IBM MQ Bridge to Salesforce to configure the connections to Salesforce and IBM MQ, then run the command runmqsfb to subscribe to events from Salesforce and publish them to an IBM MQ network.
Note:

The IBM MQ Bridge to Salesforce is available only on Linux for x86-64 (64 bit).

ibmmq-runtime

ibmmq-java

ibmmq-jre

ibmmq-bcbridge (Deprecated)

Install the IBM MQ Bridge to blockchain to send queries and updates to, and receive responses from your blockchain network.

Note:

The IBM MQ Bridge to blockchain is available only on Linux for x86-64 (64 bit).

ibmmq-runtime

ibmmq-java

ibmmq-jre

Procedure

  1. Open a shell terminal and set your current directory to the location of the installation packages.
    The location might be the mount point of the server DVD, a network location, or a local file system directory. You must have root authority to run the following commands. You can do so by adding sudo before the following commands, or by changing to the root user in the shell with the su command.
  2. [Long Term Support] For Long Term Support and Continuous Delivery before IBM MQ 9.1.5, you must accept the terms of the license agreement before you can proceed with the installation.
    To do this run the mqlicense.sh script:
    ./mqlicense.sh

    The license agreement is displayed in a language appropriate to your environment and you are prompted to accept or decline the terms of the license.

    If possible, mqlicense.sh opens an X-window to display the license.

    If you need the license to be presented as text in the current shell, which can be read by a screen reader, type the following command, ./mqlicense.sh -text_only

  3. [V9.1.5 Apr 2020] For Continuous Delivery from IBM MQ 9.1.5, you have the option of accepting the license before or after installing the product.
    See License acceptance on IBM MQ for Linux for more information.
  4. Choose how to install the IBM MQ packages:
    Either use the apt management tool to install the IBM MQ packages that you want, or use the dpkg command to install the IBM MQ packages that you want along with their dependency packages.
    • To use the apt management tool to install the IBM MQ packages that you want along with their dependency packages:
      1. Create a file with the suffix .list, for example, IBM_MQ.list, in the /etc/apt/sources.list.d directory.

        This file should contain a deb entry for the location of the directory that contains the IBM MQ packages.

        For example:
        
        # Local directory containing IBM MQ packages 
        deb [trusted=yes] file:/var/tmp/mq ./
        
        The inclusion of the [trusted=yes] statement (including the brackets) is optional and suppresses warnings and prompts during subsequent operations.
      2. Run the command apt update to add this directory, and the list of packages the directory contains, to the apt cache.
        You can now use apt to install IBM MQ. For example, you can install the complete product by issuing the following command:
        apt install "ibmmq-*" 
        You can install the server package and all its dependencies by issuing the following command:
         apt install ibmmq-server 
        Attention: Do not run the apt install ibmmq-* command in the directory which holds the .deb files, unless you are using quotation characters in the shell.

        If you are using tools such as aptitude or synaptic, the install packages can be found in the misc\non-free category.

    • To use the dpkg command to install the IBM MQ packages that you want, issue the dpkg command for each IBM MQ package that you want to install. For example, issue the following command to install the run time package:
      dpkg -i ibmmq-runtime_9.1.0.0_amd64.deb
      Important: Although dpkg permits multiple package files in the same command, this will not work as expected because of IBM MQ inter-package dependencies. You must install the packages individually in the order shown below. You may find that using apt is a better option.
      • ibmmq-runtime
      • ibmmq-jre
      • ibmmq-java
      • ibmmq-server
      • ibmmq-web
      • ibmmq-ftbase
      • ibmmq-ftagent
      • ibmmq-ftservice
      • ibmmq-ftlogger
      • ibmmq-fttools
      • ibmmq-amqp
      • ibmmq-ams
      • ibmmq-xrservice
      • ibmmq-explorer
      • ibmmq-gskit
      • ibmmq-client
      • ibmmq-man
      • ibmmq-msg_language
      • ibmmq-samples
      • ibmmq-sdk
      • ibmmq-sfbridge (Deprecated)
      • ibmmq-bcbridge (Deprecated)

Results

You have installed the packages you require.

What to do next

  • If required, you can now set this installation to be the primary installation. Enter the following command at the command prompt:
     MQ_INSTALLATION_PATH/bin/setmqinst -i -p MQ_INSTALLATION_PATH

    where MQ_INSTALLATION_PATH represents the directory where IBM MQ is installed.

  • You might want to set up the environment to work with this installation. You can use the setmqenv or crtmqenv command to set various environment variables for a particular installation of IBM MQ . For more information, see setmqenv and crtmqenv.
  • If you want to confirm that the installation was successful, you can verify your installation. See Verifying an IBM MQ installation on Linux, for more information.