feat(scan): Support RHEL8 (#813)
* feat(scan): Support RHEL8 * fix(scan): check if `dnf-uils` is installed
This commit is contained in:
@@ -53,7 +53,13 @@ func (o *rhel) depsFastRoot() []string {
|
||||
if o.getServerInfo().Mode.IsOffline() {
|
||||
return []string{}
|
||||
}
|
||||
return []string{"yum-utils"}
|
||||
|
||||
// repoquery
|
||||
majorVersion, _ := o.Distro.MajorVersion()
|
||||
if majorVersion < 8 {
|
||||
return []string{"yum-utils"}
|
||||
}
|
||||
return []string{"dnf-utils"}
|
||||
}
|
||||
|
||||
func (o *rhel) depsDeep() []string {
|
||||
|
||||
Reference in New Issue
Block a user