[Spacewalk-list] Remote .repo files re-creation

Snyder, Chris Chris_Snyder at sra.com
Tue Sep 1 13:47:33 UTC 2015


We got around this by pushing out a custom /etc/yum.conf (via Ansible) which sets the following:

	reposdir=/etc/yum.repos.d/custom

This way if we need an external repo (which 99.9% of the time we never do) we add the needed .repo to that directory.  This way centos-release can update all it wants under /etc/yum.repos.d/ and it will never impact anything on my systems because yum will never use any .repo from that directory.

This was the easiest solution for us.

-----Original Message-----
From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Ree, Jan-Albert van
Sent: Tuesday, September 01, 2015 7:14 AM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Remote .repo files re-creation

There are a few options :

- You can prevent this by not syncing the centos-release RPM from the CentOS repository but managing exceptions for many repositories is a lot of work, some packages such as Chrome also insist on installing their own .repo file even
- We run a job every night which simply removes all .repo files from /etc/yum.repos.d/ as I want all my managed machines to only get RPM's from Spacewalk

While the second option isn't the most elegant it does work reliable.
--
Jan-Albert van Ree



Jan-Albert van Ree
Linux System Administrator
MARIN Support Group
E mailto:J.A.v.Ree at marin.nl
T +31 317 49 35 48


MARIN
2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands T +31 317 49 39 11, F +31 317 49 32 45, I www.marin.nl

________________________________________
From: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com> on behalf of Domenico Malorni <Domenico.Malorni at pixartprinting.com>
Sent: Tuesday, September 01, 2015 11:28
To: spacewalk-list at redhat.com
Cc: dmalorni at gmail.com
Subject: [Spacewalk-list] Remote .repo files re-creation

Hi,
we found that when we update our Centos systems to a minor version release (ex: 6.6) the .repo files are recreated, so systems seek updates on remote repositories and not on spacewalk repository.
It is possible to configure systems to prevent the re-creation of .repo files?
We have the same problem for updates from unofficial repositories, such as Remi.

Systems: Centos 5.X, 6.x
Spacewalk server: Centos 6.6 / Spacewalk 2.3

thanks a lot




Domenico Malorni



_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list