How to create a package using IBMs Packaging Utility (command line)

Home > Search > How-to
  by

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 http://www.ibm.com/software/repositorymanager/com.ibm.websphere.BASE.v90 -prompt
com.ibm.websphere.BASE.v90_9.0.6.20171205_1311
com.ibm.websphere.ILAN.v90_9.0.6.20171205_1311
com.ibm.websphere.ND.v90_9.0.6.20171205_1311
com.ibm.websphere.NDDMZ.v90_9.0.6.20171205_1311

 

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 
  com.ibm.websphere.BASE.v90_9.0.6.20171205_1311
  com.ibm.java.jdk.v8_8.0.5007.20171218_1035
  -repositories http://www.ibm.com/software/repositorymanager/com.ibm.websphere.BASE.v90  
  -installationDirectory /opt/IBM/WebSphere/AppServer
  -sharedResourcesDirectory /opt/IBM/IMShared
  -acceptLicense
  -showProgress
  -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 com.ibm.websphere.BASE.v90_9.0.6.20171205_1311 package is downloaded from IBMs repository, and stored in the /tmp directory. 

./pucl copy com.ibm.websphere.BASE.v90_9.0.6.20171205_1311 
  -repositories http://www.ibm.com/software/repositorymanager/com.ibm.websphere.BASE.v90 
  -target /tmp/was906
  -acceptLicense
  -showProgress
  -prompt

 

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 com.ibm.websphere.BASE.v90_9.0.6.20171205_1311 
  -repositories http://www.ibm.com/software/repositorymanager/com.ibm.websphere.BASE.v90 
  -target /tmp 
  -acceptLicense
  -showProgress
  -prompt
  -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 in the box below so that we can be sure you are a human.




Comments