Skip to content

Instantly share code, notes, and snippets.

@jcoding09
Created December 16, 2025 17:53
Show Gist options
  • Select an option

  • Save jcoding09/7d4f77489ce6040e3db50f51c73ff612 to your computer and use it in GitHub Desktop.

Select an option

Save jcoding09/7d4f77489ce6040e3db50f51c73ff612 to your computer and use it in GitHub Desktop.

Prompt:

I need a production-ready Linux shell script to perform a silent installation using IBM Installation Manager (imcl).

Requirements:

  • The installation must use a response file located in the Downloads directory, and the command will be executed from that directory only.

  • The response file references a remote, password-protected repository (HTTP/HTTPS).

  • Repository credentials must be handled securely (no hard-coded credentials in the response file).

  • The remote repository uses an untrusted or self-signed SSL certificate, so the script must extract the certificate and import it into IBM Installation Manager’s embedded JVM truststore before installation.

  • The script must:

    • Validate prerequisites (imcl exists, response file exists).
    • Extract the repository certificate using OpenSSL.
    • Import the certificate into the IM JVM cacerts truststore using keytool.
    • Configure repository authentication using IBM Installation Manager secure storage.
    • Run the silent install using imcl input with logging and license acceptance.
  • The solution must follow IBM-supported practices (no SSL verification bypass).

  • Assume Linux/UNIX, with IBM Installation Manager already installed.

Deliverables:

  • A single end-to-end shell script.
  • Clear variable placeholders for repository URL, credentials, IM path, and files.
  • Minimal assumptions and suitable for automation or CI/CD usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment