第 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.

3.1. Adding additional repositories to RHEL image builder

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 libc or kernel with higher version, they will be selected over the default repositories.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部