diff --git a/scan/redhat.go b/scan/redhat.go index 45969762..b0d7c610 100644 --- a/scan/redhat.go +++ b/scan/redhat.go @@ -600,7 +600,7 @@ func (o *redhat) scanUnsecurePackagesUsingYumPluginSecurity() (models.VulnInfos, if o.Distro.Family == "rhel" && major == 5 { cmd = "yum --color=never list-security --security" } else { - cmd = "yum --color=never updateinfo list available --security" + cmd = "yum --color=never --security updateinfo list updates" } r = o.exec(util.PrependProxyEnv(cmd), o.sudo()) if !r.isSuccess() { @@ -644,7 +644,7 @@ func (o *redhat) scanUnsecurePackagesUsingYumPluginSecurity() (models.VulnInfos, if o.Distro.Family == "rhel" && major == 5 { cmd = "yum --color=never info-sec" } else { - cmd = "yum --color=never updateinfo --security update" + cmd = "yum --color=never --security updateinfo updates" } r = o.exec(util.PrependProxyEnv(cmd), o.sudo()) if !r.isSuccess() {