List installed packages using imcl commands
We can run the listInstalledPackages command with either the -long or the -verbose option, but not both.
cd /tools/directory
imcl listInstalledPackages \
[ -features ] \
[ -installationDirectory ] \
[ -long | -verbose] \
[ -rollbackVersions ]Use the -long option:
./imcl listInstalledPackages -features -long
Results:
packageID_version_1
packageID_version_2Running the listInstalledPackages command with the -features and -long options returns a longer description of the packages and the features that are included in the repository. The listInstalledPackages command with -features lists only installed features. The returned information is in this format:
install_location_1 : packageID_version_1 : display_name_1 : display_version_1 : featureId_a,featureId_b,featureId_c
install_location_2 : packageID_version_2 : display_name_2 : display_version_2 : featureId_a,featureId_b,featureId_cUse the -verbose option to show more information when we run the listInstalledPackages command. Do not use the -verbose option with the -features option. Using the -verbose option returns information in this format:
[Shared]
Shared resources directory: shared_resources_directory
[Package group]
Name: package_group_name
Installation directory: installation_directory
Translations: installed_translations
Architecture: architecture_type
[Package]
Name: package_name (package_ID)
Version: package_version (package_internal_version)
Repository: repository
Features:
features_list
Fixes:
fixes_listFor 64-bit operating systems, information about the architecture shows. For 32-bit operating systems, the architecture information does not show. Running the listInstalledPackages command with the -rollbackVersions option returns a list of package versions that we can roll back to. We can then specify a package version for the rollback command. The returned information is in this format:
packageID_version: version, version, version
Running the listInstalledPackages command with the -rollbackVersions option and -features returns the information in this format:
packageID_version: featureID, featureID : version,version
Running the listInstalledPackages command with the -rollbackVersions option, -features option and -long option returns the information in this format:
installation directory : packageID_version : package name : package version : featureID,featureID : rollbackVersion,rollbackVersion
Running the listInstalledPackages command with the -rollbackVersions option and -long option returns the information in this format:
installation directory : packageID_version : packageName : packageVersion : rollbackVersion,rollbackVersion
What to do next
After listing the installed packages, use the imcl commands to install additional packages or updates. We can also roll back packages to previous versions.