1
0

Yum in CentOS 8 does not support --show{-}duplicates with a dash

This commit is contained in:
dump_stack() 2020-05-30 12:48:24 +00:00
parent bfc6f11a7e
commit cf79a9f94f
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -69,7 +69,7 @@ func matchDebianHeadersPkg(container, mask string, generic bool) (
func matchCentOSDevelPkg(container, mask string, generic bool) (
pkgs []string, err error) {
cmd := "yum search kernel-devel --show-duplicates | " +
cmd := "yum search kernel-devel --showduplicates | " +
"grep '^kernel-devel' | cut -d ' ' -f 1"
output, err := dockerRun(time.Minute, container, "/tmp", cmd)
if err != nil {