2.10. 从远程网站上传内容(仅限RPM 内容)
您可以上传存储在远程服务器中的软件包,而无需首先手动下载它们。软件包必须可以被 HTTP、HTTPS 或者 FTP 访问。
流程
进入 Red Hat Update Infrastructure Management Tool 主页:
[root@rhua ~]# rhui-manager
-
按
r
键选择 管理存储库。 在 Repository Management 屏幕中按
ur
:Select the repositories to upload the package into: - 1: test
- 输入值(1-1)来切换选择。
按
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. # # # ###########################################################################
输入要上传的软件包的远程 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
按
y
来继续或n
取消:Uploaded /tmp/rhui.318mfp81.tmp/bear-4.1-1.noarch.rpm
验证
如果内容上传成功,则会显示类似的信息:
Uploaded /tmp/rhui.318mfp81.tmp/bear-4.1-1.noarch.rpm Total of 1 packages uploaded. 1 RPM(s) associated to repo test.