About Default Image Builder Repositories

Composed images use Image Builder repositories to download their required packages.

Image Builder doesn't use the system repositories that are defined in /etc/yum.repos.d/ in a typical Oracle Linux installation. Instead, the repository definitions for Image Builder are automatically installed in /usr/share/osbuild-composer/repositories. In this directory, repository definitions are contained in files in JSON format, which is different from the *.repo files in /etc/yum.repos.d/.

The following extract is an example of a *.json repository file for the latest Oracle Linux 9 release on the x86_64 platform.

{
    "x86_64": [
        {
        "name": "ol9_baseos_latest",
        "baseurl": "https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/x86_64/",
            "gpgkey": "THE ENTIRE GPG PUBLIC KEY BLOCK",
            "check_gpg": true,
            "enabled": true
        },
        {
            ...other repositories...
        }
    ]
}

The repository definitions in the JSON file correspond to information in the parallel *.repo file in the /etc/yum.repos.d directory. In the previous example, the JSON file is based on the /etc/yum.repos.d/oracle-linux-ol9.repo file.

You can override the default repositories in /usr/share/osbuild-composer/repositories by defining custom repositories in a different location.