yum + 打印所有未安装的可用安全更新

yum + 打印所有未安装的可用安全更新

关于 Redhat 7 Linux

以下 yum 语法打印所有可用安全更新的列表而不安装它们(已安装的 rpm 和未安装的)

# yum updateinfo list security all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager

i RHSA-2015:2315 Moderate/Sec.  ModemManager-1.1.0-8.git20130913.el7.x86_64
i RHSA-2015:2315 Moderate/Sec.  ModemManager-glib-1.1.0-8.git20130913.el7.x86_64
i RHSA-2015:2315 Moderate/Sec.  NetworkManager-1:1.0.6-27.el7.x86_64
  RHSA-2016:2581 Low/Sec.       NetworkManager-1:1.4.0-12.el7.x86_64
  RHSA-2017:2299 Moderate/Sec.  NetworkManager-1:1.8.0-9.el7.x86_64
i RHSA-2015:2315 Moderate/Sec.  NetworkManager-adsl-1:1.0.6-27.el7.x86_64
  RHSA-2016:2581 Low/Sec.       NetworkManager-adsl-1:1.4.0-12.el7.x86_64
  RHSA-2017:2299 Moderate/Sec.  NetworkManager-adsl-1:1.8.0-9.el7.x86_64

但是如果我们想打印未安装的可用安全更新,语法是什么

答案1

您可以尝试使用:#yum check-update

相关内容