2.8. 创建新的自定义存储库(仅限 RPM 内容)


您可以创建自定义软件仓库,用于将更新的客户端配置软件包或其他非红帽软件分发到 RHUI 客户端。适用于 64 位 RHUI 服务器的受保护的软件仓库(如 client-rhui-x86_64)将是向 RHUI 客户端发布新的非红帽软件包的首选载体。

与红帽内容存储库一样,所有在处理器架构(i386AMD64)中有所不同的受保护的自定义软件仓库都被整合到授权证书中的单个权利中,使用 $basearch yum 变量。

如果出现证书问题,则 RHUI 服务器的未保护存储库可用作回退方法,用于将更新的 RPM 分发到 RHUI 客户端。

流程

  1. 导航到 Red Hat Update Infrastructure Management Tool 主页:

    [root@rhua ~]# rhui-manager
    Copy to Clipboard Toggle word wrap
  2. r 选择 管理存储库
  3. Repository Management 屏幕中,按 c创建新的自定义存储库(仅限 RPM 内容)。
  4. 输入存储库的唯一 ID。只允许字母数字字符、_(underscore)和 -(hyphen)。您不能在唯一 ID 中使用空格。例如,repo1repo_1repo-1 是有效的条目。

    Unique ID for the custom repository (alphanumerics, _, and - only):
    Copy to Clipboard Toggle word wrap
  5. 输入存储库的显示名称。此名称可以包含空格和其他无法在 ID 中使用的字符。名称默认为 ID。

    Display name for the custom repository [repo_1]:
    Copy to Clipboard Toggle word wrap
  6. 指定托管存储库的路径。该路径必须在 RHUI 托管的所有存储库中都唯一。例如,如果您将此步骤中的路径指定为 internal/rhel/9/repo_1,则存储库将位于: https://<yourLB>/pulp/content/protected/internal/rhel/9/repo_1

    Unique path at which the repository will be served [repo_1]:
    Copy to Clipboard Toggle word wrap
  7. 选择是否保护新存储库。如果您回答这个问题,则任何客户端都可以访问该存储库。如果您回答 yes,则只有具有适当授权证书的客户端才能访问该存储库。

    警告

    如名称所示,未保护的存储库中的内容可用于请求它的任何系统,而无需客户端授权证书。在使用未保护的存储库分发任何内容时,请小心,特别是更新的客户端配置 RPM 等内容,然后提供对受保护的存储库的访问。

  8. 在出现以下问题时,回答 yes 或 no :

    Should the repository require clients to perform a GPG check and verify packages are signed by a GPG key? (y/n)
    
    Will the repository be used to host any Red Hat GPG signed content? (y/n)
    
    Will the repository be used to host any custom GPG signed content? (y/n)
    
    Enter the absolute path to the public key of the GPG key pair:
    
    Would you like to enter another public key? (y/n)
    
    Enter the absolute path to the public key of the GPG key pair:
    
    Would you like to enter another public key? (y/n)
    Copy to Clipboard Toggle word wrap
  9. 此时会显示新存储库的详情。在提示符处按 y 确认信息并创建存储库。

验证

  1. Repository Management 屏幕中,按 l 检查是否安装了正确的存储库。
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat