问题

如何查看一个 yum 频道存储库有多大,以便知道该频道将同步多少数据到本地 yum 存储库?

如何在 Oracle Linux 中检查 Yum 通道的大小
欢迎来到之路教程(on itroad-com)

解决方法

要查看存储库的实际大小,请使用“yum repolist -v”或者“yum repoinfo”命令。

  1. 查看最新OL7 yum频道大小的例子
# yum repoinfo ol7_latest
Loaded plugins: langpacks, ulninfo
Repo-id : ol7_latest/x86_64
Repo-name : Oracle Linux 7Server Latest (x86_64)
Repo-status : enabled
Repo-updated : Fri Jan 25 22:56:45 2019
Repo-pkgs : 8,857
Repo-size : 10 G  --》 大小
Repo-baseurl : http://public-yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/
Repo-expire : 21,600 second(s) (last: Mon Jan 28 09:34:04 2019)
Repo-excluded: 2,947
Repo-filename: /etc/yum.repos.d/public-yum-ol7.repo
  1. 检查已注册到 ULN 的 OL6 系统的所有启用的 yum 通道大小的示例:
# uln-channel --list
ol6_x86_64_UEKR4
ol6_x86_64_latest
# yum repolist -v
Loading "rhnplugin" plugin
Loading "ulninfo" plugin
...
Repo-pkgs : 8,890
Repo-size : 15 G   --》 大小
日期:2020-09-17 00:13:16 来源:oir作者:oir