feat(scan): Support RHEL8 (#813)

* feat(scan): Support RHEL8

* fix(scan): check if `dnf-uils` is installed
This commit is contained in:
Kota Kanbe
2019-06-14 12:28:16 +09:00
committed by GitHub
parent eb9f9680ec
commit 75fea79ac1
3 changed files with 27 additions and 6 deletions

View File

@@ -47,15 +47,26 @@ func (o *centos) depsFast() []string {
if o.getServerInfo().Mode.IsOffline() {
return []string{}
}
// repoquery
return []string{"yum-utils"}
majorVersion, _ := o.Distro.MajorVersion()
if majorVersion < 8 {
return []string{"yum-utils"}
}
return []string{"dnf-utils"}
}
func (o *centos) depsFastRoot() []string {
return []string{
"yum-utils",
"yum-plugin-ps",
if o.getServerInfo().Mode.IsOffline() {
return []string{}
}
// repoquery
majorVersion, _ := o.Distro.MajorVersion()
if majorVersion < 8 {
return []string{"yum-utils"}
}
return []string{"dnf-utils"}
}
func (o *centos) depsDeep() []string {