搜索

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

download PDF

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

与 Red Hat 内容存储库一样,所有这些都受到保护,仅以处理器架构(i386AMD64)不同的自定义软件仓库合并为授权证书中的单个权利(使用 $basearch yum 变量)。

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

流程

  1. 进入 Red Hat Update Infrastructure Management Tool 主页:

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

    Unique ID for the custom repository (alphanumerics, _, and - only):
  5. 输入存储库的显示名称。此名称用于识别 Red Hat Update Infrastructure 管理工具中的软件仓库。

    Display name for the custom repository [repo_1]:
  6. 指定托管存储库的路径。该路径必须在由 RHUI 托管的所有存储库中是唯一的。例如,如果您将路径指定为 some/unique/name,则存储库将位于 //server/pulp/repos/some/unique/name

    Unique path at which the repository will be served [repo_1]:
  7. 选择 sha256 作为要用于存储库元数据的 checksum 类型。

    注意

    当您为 RHEL 6、RHEL 7 或 RHEL 8 创建自定义软件仓库时,请使用 sha256。如果您为 RHEL 5 客户端创建软件仓库,请使用 sha1

    Algorithm to use when calculating the checksum values for repository metadata:
    
        1 - sha256 (default)
        2 - sha1 (RHEL 5)
    Enter value (1-2) or 'b' to abort:
  8. 选择是否保护新存储库。如果不回答此问题,则任何客户端都可以访问该存储库。如果您回答 yes,则只有具有适当授权证书的客户端才能访问存储库。

    警告

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

  9. 在出现以下情况时,回答"是"或没有以下问题:

    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)
  10. 此时会显示新存储库的详情。在提示符处按 y 确认信息并创建存储库。

验证

  1. Repository Management 屏幕中,按 l 来检查是否已安装了正确的存储库。
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.