Accept the license agreement on the Message Queue product download site.
Download the Message Queue product distribution file from the Web site into an empty, temporary download directory, temp_directory.
The download file is: mq3_7-ent-linx86.zip
Change to the temp_directory and uncompress the distribution file.
unzip mq3_7-ent-linx86.zip
The unzip command creates an mq3_7-ent directory, which contains the distribution files: LICENSE, README, and COPYRIGHT files; mqinstall utility; mquninstall utility; mqmigrate utility; and an rpms directory.
The following table describes the Message Queue RPM packages in the rpms directory. If any of these files already exist on your system, you need to check whether the version number is greater than that provided by Message Queue. If it is, you should do a custom install.
Change to the directory containing the Message Queue distribution files.
cd mq3_7-ent
Log in as root or change to superuser.
For example, type the following at a command prompt:
su root
When prompted, type your root password.
Remember to migrate data if necessary. See Migrating Files from an Earlier Installation for more information.
If you intend to install all of the Message-Queue-specific RPM packages (packages which start with sun-mq), you will need to run the mqinstall script.
Please note that the install script will overwrite all Message-Queue-specific RPM packages, and will not install any shared RPM packages. You must install shared RPM packages manually, as described in Step 7.
Run the mqinstall script.
./mqinstall
The script lists the distribution RPM packages including their version numbers, if any, that are already installed, and then lists the RPM packages about to be installed.
If any of the Message Queue RPM packages listed is already installed and its version is newer, then you will probably not want to install the corresponding Message Queue RPM package. In that case, enter n (no) and continue with Step 7.
The mqinstall script does not install the sun-mq-compat RPM package by default and you should only have it installed if you need it. For example, if your existing client applications contain scripts that depend upon former file locations (such as jar files), you will need to install the sun-mq-compat RPM package. To install this RPM package, see Step 7.
Enter y (yes) if you want to install all the Message-Queue-specific RPM packages. Otherwise, enter n (no) and continue with Step 7.
If you run the script, it creates a log file in the following directory:
/var/sadm/install/logs
The /opt/sun/mq directory and its contents are created, and files are placed in other locations as well (see Migration Issues).
If you want to install a subset of the Message QueueRPM packages, if you want to install shared RPM packages, or if you do not want to overwrite later versions of RPM packages, do the following:
Back up the imq3_7-ent-linx86.zip file from your temporary working directory.
This is your logical media. Treat this file as you would any other installation media. Place a copy in a safe location in case you encounter a situation (such as a system failure) that requires reinstallation of the product.
Clean up all remaining files in your temporary working directory.
The instance data for any pre-existing broker instance is owned by the user that created that instance. Therefore, once installation is complete, be sure to run any Message Queue broker instance (using the -name instanceName option) as the owner with privileges to the /var/sun/mq/instances/instanceName directory. This applies to the default broker instance (named imqbroker) as well.