Using Third-Party Custom Repositories

Use custom repositories from third-party sources.

You can use composer-cli to load custom repositories created by a third-party.

  1. Create the repository source file.

    Create a TOML file that references the URL of the custom repository. For example:

    id = "custom_repo"
    name = "Custom Repository"
    type = "yum-baseurl"
    url = "https://yum.example.com/repos/packages"
    check_gpg = false
    check_ssl = false

    The value of the type field must be one of yum-baseurl, yum-mirrorlist, or yum-metalink.

  2. Add the third-party source repository to Image Builder.

    Run the following command to add the repository source file:

    sudo composer-cli sources add filename.toml
  3. Check that the new repository is available to Image Builder.

    Run the following command to list the available repositories:

    sudo composer-cli sources list