If you have not yet installed IBMs Installation Manager, check out our article on installing Installation Manager.
remote repository vs. local repository
When listing the available packages in a repository, you will need to include the location of the repository, like this.
imcl listAvailablePackages -repositories <repository location>
One option is to use the IBM HTTP URL that contains the installation files for a product. This is known as an "IBM service repostiory". Additionally, when using an IBM service repository, you will need to provide your IBM username and password to. One option to provide your username and password is by using the -prompt, which will prompt you to provide your username and password. Another option is to store your username in a secure storage file and to store your password in a master password file, and to then using the -secureStorageFile and -masterPasswordFile options on the command line.
./imcl listAvailablePackages -repositories http://www.ibm.com/software/repositorymanager/com.ibm.websphere.IBMJAVA.v80 -prompt or -secureStorageFile /path/to/secure_storage.txt and -masterPasswordFile /path/to/master_password.txt
Another option is to download the installation files from Fix Central or using the Packaging Utility. This is known as a "local repository". In this example, the installation files are in the /tmp/WebSphere directory on the local server.
imcl listAvailablePackages -repositories /tmp/WebSphere
In this example, we will check to see the packages that are available in the http://www.ibm.com/software/repositorymanager/com.ibm.websphere.BASE.v90 repository.
./imcl listAvailablePackages -repositories http://www.ibm.com/software/repositorymanager/com.ibm.websphere.BASE.v90 -prompt or -secureStorageFile /path/to/secure_storage.txt and -masterPasswordFile /path/to/master_password.txt
listAvailablePackages will produce output like this. In this example, com.ibm.websphere.BASE.v90 is the offering ID. Following the offering ID is the version.release.modification.fixpack, such as 220.127.116.1160526_1854.
com.ibm.websphere.BASE.v90_18.104.22.16860526_1854 com.ibm.websphere.BASE.v90_22.214.171.12460906_0049 com.ibm.websphere.BASE.v90_126.96.36.19961108_1719 com.ibm.websphere.BASE.v90_188.8.131.5270217_1945 com.ibm.websphere.BASE.v90_184.108.40.20670523_1327 com.ibm.websphere.BASE.v90_220.127.116.1170918_1844 com.ibm.websphere.BASE.v90_18.104.22.16871205_1311
Be aware that IBM has a number of different repositories. For example, http://www.ibm.com/software/repositorymanager/com.ibm.websphere.IBMJAVA.v80 is the repository to install IBMs Java, which will produce output like this.
com.ibm.websphere.IBMJAVA.v80_8.0.2010.20160224_1829 com.ibm.websphere.IBMJAVA.v80_8.0.3000.20160720_1754 com.ibm.websphere.IBMJAVA.v80_8.0.3020.20161124_1304 com.ibm.websphere.IBMJAVA.v80_8.0.4005.20170626_0627