Editing Filters for a Custom Software Source

Use filters to include or exclude specific package content for a custom software source in OS Management Hub.

Important

Removing or changing filters might prevent instances from receiving updates.
    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 Filters and then click Edit.
    5. Enable or disable the Only include the latest version based on your filters option. See Limiting Packages and Modules to the Latest Version to understand how this affects the behavior of 'Include' filters.
    6. Add, modify, or remove filters to include or exclude package content.
      To remove a filter, click X on the right side of the filter.

      To add a filter, click + Another filter and then provide the following values:

      • Scope: Select either Include or Exclude.

      • Resource: Select one of the following options, and then provide additional values as required:

        • Package: To create a filter that includes or excludes the specified package from the selected vendor software source, enter the package name and optionally enter a version. If no version is specified, the service includes all versions. The acceptable package version format is 'epoch:version-release' or 'version-release'. For example, package name: edk2-ovmf and package version: 1:20210616-3.el8.
        • Group: To create a filter that includes or excludes the package group from the selected vendor software sources, select a yum or DNF package group.
        • Module: To create a filter that includes or excludes modular content from the selected vendor software sources, select the module name, stream, and stream profile.
    7. Click Save changes.

      The software source can take a few minutes to update. You can monitor progress on the Jobs page. Filter for 'Update software source' type.

  • Use the oci os-management-hub software-source update-custom-swsrc command and required parameters to update a custom software source, such as editing filters.

    oci os-management-hub software-source update-custom-swsrc --software-source-id ocid --filter filter.json [OPTIONS]

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

  • Run the UpdateSoftwareSource operation to edit the filters for a custom software source.