第 3 章 Configuring RHEL image builder repositories
You can add repositories or override the default base repositories.
You can use the following types of repositories in RHEL image builder:
- Official repository overrides
- Use these if you want to download base system RPMs from elsewhere than the Red Hat Content Delivery Network (CDN) official repositories, for example, a custom mirror in your network. Using official repository overrides disables the default repositories, and your custom mirror must contain all the necessary packages.
- Custom third-party repositories
- Use these to include packages that are not available in the official RHEL repositories.
You can add additional custom repositories to your image during the image-building time by using the image-builder tool and the --extra-repo flag.
Prerequisites
- You have the URL of the custom repository.
Procedure
Build the image, and add the extra repository to RHEL image builder:
$ image-builder build <image-type> \ --add-repo=<file:///path/to/my/repo> \The repository content becomes available during the image building, and the dependency solver gets packages from the repository. For example, if the repository contains a
libcorkernelwith higher version, they will be selected over the default repositories.