FreeKB - IBM WebSphere Create a package using Packaging Utility (command line)
IBM WebSphere - Create a package using Packaging Utility (command line)

This article assumes you have IBMs Packaging Utility installed on your system.

IBMs Packaging Utility can be used to create a package. For example, let's say you want to download and install IBMs WebSphere application server. Using the Packaging Utility, can you copy IBMs WebSphere application server from IBMs repository onto your server, and then install the WebSphere application server from the package you downloaded from the repository.

You would start by first listing the available packages in an IBM repository.

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


Let's say you want to install WebSphere BASE version 9.0.6. One way to accomplish this would be to use Installation Manager to retrieve the latest version of WebSphere from IBMs repository. If you are going to be installing WebSphere on a number of different servers, this may not be ideal, as this install can be somewhat time consuming as the installation files are downloaded from the remote repository to each of your servers.

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


In this scenario, it may make sense to copy the WebSphere package using the Packaging Utility command line utility. Or, you could just as well download the package from Fix Central. In this example, the package is downloaded from IBMs repository, and stored in the /tmp directory. 

./PUCL copy 
  -target /tmp/was906


Once completed, the target directory will contain a number of files and directories. These files and directories can be used to install a package.


Getting Platform Specific

In the prior example, the Packaging Utility probably created the same exact installation files as you would have obtained from Fix Central, so there may not have been a very compelling reason to use the Packaging Utility instead of Fix Central. 

One of the benefits of the Packaging Utility is that you can get platform specific. For example, let's say there is a package in Fix Central that only applies to all platforms, such as Windows and Linux, both 32 and 64 bit. This package would have a number of files that you would never need or use, making the package unnecessarily large, consuming disk space. With the Packaging Utility, you can use the -platform options to copy installation files from an IBM reposistory for only the type of platform you need. 

./pucl copy 
  -target /tmp 
  -platform os=linux,arch=x86_64


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 ae507 in the box below so that we can be sure you are a human.


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