Generate a response file using imcl commands
We can use imcl commands to generate response files from packages in a repository or from installed packages. We can use the genereateResponseFile option with a full product installation. This option cannot be used when updating from one version to another. The following options are common to both methods of generating a response file:
- To filter the packages included in the generated response file, we must specify one or more package IDs on the command line after the generateResponseFile option. Only packages or fixes with one of those IDs are included in the output.
- By default, the generated response file is displayed on the console. To include the output in a file, use the -output output_file command.
imcl help generateResponsefile generateResponseFile packageId[_Version]... packageId[_Version]... -connectPassportAdvantage -installationDirectory install directory -masterPasswordFile masterPasswordFilePath -output response file -preferences key=value[,key2=value2...] -prompt -repositories repository[,repository2...] -secureStorageFile secureStorageFilePath -useServiceRepositoryGenerate a response file suitable for use with the -input option.
When we use -repositories, the response file contains commands to install the packages from those repositories. Otherwise, it contains commands to install the set of currently installed packages.
When we use -installationDirectory, install commands are generated for only the packages installed in that directory. The -repositories option is not allowed in this case.
Examples:generateResponseFile com.ibm.some.package.id -repositories http://example.com/repository generateResponseFile -output response_file.xml generateResponseFile -output response_file.xml -installationDirectory /opt/packageGenerate a response file from packages in a repository
Procedure
- Run either the -repositories or -connectPassportAdvantage command with these options:
imcl generateResponseFile -repositories source_repository imcl generateResponseFile -connectPassportAdvantage imcl generateResponseFile [packageId[_Version]]... -repositories source_repository imcl generateResponseFile [packageId[_Version]]... -connectPassportAdvantage- The generated response file installs all packages and fixes that are found in the source repositories or in Passport Advantage .
Generate a response file from installed packages
Procedure
- When we do not specify the -repositories or the -connectPassportAdvantage option, the generateResponseFile command generates a response file that is based on the packages that are currently installed. The following command generates a response file for every installed package and fix in every package group: imcl generateResponseFile.
- To limit your response file to a single package group, use the -installationDirectory command. This command generates a response file for the packages installed in the installation_directory:
imcl generateResponseFile -installation_directory installation_directory imcl generateResponseFile [packageId[_Version]]... [-installationDirectory]
Home