可以从已认证的存储库以静默方式安装,但是,需要具备相应的凭证才能访问已认证的存储库。
关于此任务
Installation Manager 使用 Eclipse 基础结构将凭证保存在一个称为密钥环文件的文件中。虽然密钥环文件的内容是加密的,但是,可以指定需要输入密码才能打开此密钥环文件,从而提供更高的安全性级别。有关密钥环文件的更多信息,请参阅 Eclipse 工作台用户指南。
要以静默方式访问认证的存储库,请完成下列步骤:
- 创建密钥环文件并在该文件中提供适当的凭证。
- 以用户界面 (UI) 方式启动 Installation Manager 并指定下列命令行参数:-keyring <file>
[-password <password>]。例如,在适当平台上使用下列命令:
- 在 UI 方式下使用 Installation Manager 并访问受保护的存储库时,将打开一个窗口供您输入凭证。输入正确的凭证,然后保存这些凭证。确保选中了保存密码复选框。 此时会将这些凭证保存到指定的密钥环文件。
- 以静默方式启动 Installation Manager 并且指定下列命令行参数:-keyring <file> [-password <password>]。在静默安装期间,从命令行中指定的密钥环文件中检索了受保护存储库的凭证。
- 在 Windows® 上,使用 launcher.exe
--launcher.ini silent-install -input <input file path and name> -updateAll
-log <log file path and name> -keyring <key ring file path and name>
-password <password>,其中 launcher 是 IBMIMc(对于
Installation Manager)和 installc(对于 Installation
Manager 安装程序)。
- 在其他平台上,使用 launcher --launcher.ini
silent-install -input <input file path and name> -updateAll -log <log
file path and name> -keyring <key ring file path and name> -password <password>
-keyring /tmp/keyring.txt -password my1secret,其中 launcher 是 IBMIM (对于 Installation Manager)和 install(对于 Installation Manager 安装程序)。