搜索

2.10. 从远程网站上传内容(仅限RPM 内容)

download PDF

您可以上传存储在远程服务器中的软件包,而无需首先手动下载它们。软件包必须可以被 HTTP、HTTPS 或者 FTP 访问。

流程

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

    [root@rhua ~]# rhui-manager
  2. r 键选择 管理存储库
  3. Repository Management 屏幕中按 ur:

    Select the repositories to upload the package into:
      -    1: test
  4. 输入值(1-1)来切换选择。
  5. c 键确认您的选择:

    ### WARNING ### WARNING ### WARNING ### WARNING ### WARNING ### WARNING ###
    #                                                                         #
    #   Content retrieved from non-Red Hat arbitrary places can contain       #
    #   unsupported or malicious software.  Proceed at your own risk.         #
    #                                                                         #
    ###########################################################################
  6. 输入要上传的软件包的远程 URL。如果位置是 RPM,则将上传该文件。如果位置是一个网页,则所有链接到该页面的 RPM 都将被上传:

    https://www.google.com/url?q=https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/bear-4.1-
    1.noarch.rpm&sa=D&source=docs&ust=1637381734614000&usg=AOvVaw2LGPli3y-CXIVAQJtbtKRw
    Retrieving https://www.google.com/url?q=https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/bear-4.1-1.noarch.rpm&sa=D&source=docs&ust=1637381734614000&usg=AOvVaw2LGPli3y-
    CXIVAQJtbtKRw
    Found 1 RPMs to download
    Retrieving https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/bear-4.1-1.noarch.rpm
    
    The following RPMs will be uploaded:
      bear-4.1-1.noarch.rpm
  7. y 来继续或 n 取消:

    Uploaded /tmp/rhui.318mfp81.tmp/bear-4.1-1.noarch.rpm

验证

  1. 如果内容上传成功,则会显示类似的信息:

    Uploaded /tmp/rhui.318mfp81.tmp/bear-4.1-1.noarch.rpm
    Total of 1 packages uploaded.
    1 RPM(s) associated to repo test.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.