Adding Packages to the Package List for a Custom Software Source

Use the package list to include specific package content for a custom software source in OS Management Hub. You can add packages to an existing custom software source by providing a package list.

Formatting of the package list

You can run rpm -qa on a reference instance to collect a package list. For example, the format of the packages is:

pam-1.3.1-27.el8.x86_64
openssl-libs-1.1.1k-12.el8_9.x86_64
libreport-filesystem-2.9.5-15.0.4.el8.x86_64
    1. Open the navigation menu and click Observability & Management. Under OS Management Hub, click Software sources.
    2. Under List scope, select the compartment that contains the software source you're interested in.
    3. Click the name of the custom software source.
    4. Under Resources, click Available packages and then click Add.
    5. Select either Upload or Paste.

      Provide the package list in the format of rpm -qa.

      For example, the format of the packages would be:

      pam-1.3.1-27.el8.x86_64
      openssl-libs-1.1.1k-12.el8_9.x86_64
      libreport-filesystem-2.9.5-15.0.4.el8.x86_64
    6. Click Add.
  • Use the oci os-management-hub software-source add command and required parameters to add packages to a custom software source.

    oci os-management-hub software-source add-packages --software-source-id ocid --packages packages.json [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the AddPackagesToSoftwareSource operation to add packages to a custom software source.