[Spacewalk-list] CentOS repos reappear in /etc/yum.repos.d

David Dales DDales at petsmart.com
Wed Nov 27 17:54:45 UTC 2019


If I'm not mistaken setting the "enabled=0" won't work. If Spacewalk/Yum discovers multiple repository sources with the same source URL it will fail.

We use puppet to remove the entries under /etc/yum.repos.d/ to avoid this problem

-----Original Message-----
From: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com> On Behalf Of Gerald Vogt
Sent: Wednesday, November 27, 2019 10:51 AM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] CentOS repos reappear in /etc/yum.repos.d


EXTERNAL EMAIL: Ensure you trust this sender and know the content is safe before clicking on any links or attachments.

The centos-release rpm contains all the repo files. If they are missing they are restored during the next install/update. That is standard rpm behavior for config files in rpms.

Don't (re)move the CentOS repo files. If you don't want to use those repos, modify the files and set all repositories in the files to "enabled=0".

Config files are not overwritten if they exist. That's the case for any config file from any rpm.

For example, if you have installed the apache webserver with the httpd rpm you cannot remove the welcome page by deleting /etc/httpd/conf.d/welcome.conf. It would come back during the next update.

-Gerald

On 27.11.19 18:43, Nicole Beck wrote:
> Hello,
> 
> I have a Spacewalk 2.9 server and a CentOS 7 client using the 
> Spacewalk
> 2.9 client.  After registering the client with rhnreg_ks, I moved all 
> of the files from /etc/yum.repos.d to /etc/yum.repos.d.o. The "yum 
> repolist" command shows that I'm using the repositories from my 
> spacewalk server. I've noticed that when I update the client 
> (specifically the centos-release package), the Centos-* repository 
> files reappear in /etc/yum.repos.d.  Is there any way to prevent this 
> from happening?
> 
> Thanks,
> 
> Nicole
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://urldefense.com/v3/__https://www.redhat.com/mailman/listinfo/sp
> acewalk-list__;!vF5gcTc1DeE!ziEpNqL3OxQw46m6GWCxxERXFNhqOHdMKqHStJrP0V
> b5lgUwobIzd5yBLoKe51E$
> 


_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://urldefense.com/v3/__https://www.redhat.com/mailman/listinfo/spacewalk-list__;!vF5gcTc1DeE!ziEpNqL3OxQw46m6GWCxxERXFNhqOHdMKqHStJrP0Vb5lgUwobIzd5yBLoKe51E$ 





More information about the Spacewalk-list mailing list