Install packages using imcl
Install packages or updates from the tools directory using Installation Manager command line (imcl) installation commands.
- To identify the package_id_version,feature_id, run the listAvailablePackages command. See View available packages .
- Create a keyring file if you are using repositories that require authentication. See Storing credentials for information about how to create a keyring file.
- On z/OS, use the zCreateFileSystem.sh script to create and mount a file system for a product installation. Use the zMountFileSystem.sh script to mount an existing file system and set ownership and permissions before applying service or adding packages to an existing location. Both scripts are located in the tools directory.
Procedure
- Open a command-line utility.
- Open the tools directory. See Locating the tools directory for more information about the tools directory.
- Run the installation command:
imcl install package_id_version,feature_id -repositories source_repository -installationDirectory installation_directory [ -sharedResourcesDirectory shared_directory ] [ -preferences preference_key=value ] [ -keyring keyring_file -password password ] [ -acceptLicense ]Include quotation marks around filepaths that have spaces.
Example
Operating system Administrator Nonadministrator Group Windows 2000 or Windows XP Professional imcl.exe install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory "C:\Program Files\IBM\Package" -keyring C:\keyring_file.keyring -password password -acceptLicense imcl.exe install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory "C:\Documents and Settings\user\IBM\Package" -keyring C:\keyring_file.keyring -password password -acceptLicense Not available. Windows Vista, Windows 2008, or Windows 7 imcl.exe install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory "C:\Program Files\IBM\Package" -keyring C:\keyring_file.keyring -password password -acceptLicense imcl.exe install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory "C:\Users\user\IBM\Package" -keyring C:\keyring_file.keyring -password password -acceptLicense Not available. Linux and UNIX ./imcl install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory /opt/IBM/Package -keyring /var/keyring_file.keyring -password password -acceptLicense ./imcl install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory /user_home/IBM/Package -keyring /user_home/keyring_file.keyring -password password -acceptLicense ./imcl install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory /user_home/IBM/Package_Group -keyring /user_home/keyring_file.keyring -password password -acceptLicense IBM i ./imcl install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory /QIBM/ProdData/Package -keyring /var/keyring_file.keyring -password password -acceptLicense ./imcl install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory /user_home/IBM/Package -keyring /user_home/keyring_file.keyring -password password -acceptLicense Not available. z/OS ./imcl install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory /Package -keyring /var/keyring_file.keyring -password password -acceptLicense ./imcl install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory /user_home/Package -keyring /user_home/keyring_file.keyring -password password -acceptLicense ./imcl install com.ibm.package_7.1 -repositories http://repository/package/7.1/repository.config -installationDirectory /user_home/Package_Group/ -keyring /user_home/keyring_file.keyring -password password -acceptLicense Install packages silently using imcl with a response file
Install packages or updates silently from the tools directory using Installation Manager command line (imcl) installation commands with a response file.
- Create a response file with the specifications for your installation.
- Create a keyring file if you are using repositories that require authentication.
- Open a command-line utility.
- Open the tools directory. See Locating the tools directory for more information about the tools directory.
- Run the installation command:
imcl input /path/to/respfile [ -keyring keyring_file -password password ] [ -log /path/to/logfile ] [ -acceptLicense ]Include quotation marks around filepaths that have spaces.
Example
Operating system Command Windows imcl input c:\response_files\install_product.xml -keyring C:\keyring_file.keyring -password password -log c:\mylog\silent_install_log.xml -acceptLicense Linux, UNIX, IBM i and z/OS ./imcl input /response_files/install_product.xml -keyring /keyring_file.keyring -password password -log /mylog/silent_install_log.xml -acceptLicense