From daf2e9d474c63fc751a87b138ab7b0ea0cb78788 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 5 Oct 2024 18:03:14 +0000 Subject: [PATCH] fix: remove old centos repos --- distro/centos/centos.go | 1 + 1 file changed, 1 insertion(+) diff --git a/distro/centos/centos.go b/distro/centos/centos.go index d70e749..47e31ed 100644 --- a/distro/centos/centos.go +++ b/distro/centos/centos.go @@ -102,6 +102,7 @@ func (centos CentOS) runs() (commands []string) { repos = append(repos, fmt.Sprintf(repofmt, ver, "os", ver, "os", ver, "os")) repos = append(repos, fmt.Sprintf(repofmt, ver, "updates", ver, "updates", ver, "updates")) } + cmdf("rm /etc/yum.repos.d/*") case "8": repofmt := "[%s-%s]\\n" + "name=CentOS-%s - %s\\n" +