<font size=2 face="sans-serif">There is another option mentioned in the
archive, about updating /etc/yum.conf with a new reposdir=.  This
avoids updating/creating the repositories when the CentOS release rpm is
updated with the next kernel release.   Oracle and Redhat do not include
the repository information in the primary release rpm, but provide optional
rpms or methods to install the repositories.  By separating the functionality
of the rpm, this avoids these issues.  I wish CentOS would follow
the same process as well.</font><br><br><a href="https://www.redhat.com/archives/spacewalk-list/2018-February/msg00033.html"><font size=2 color=blue face="sans-serif">https://www.redhat.com/archives/spacewalk-list/2018-February/msg00033.html</font></a><br><br><font size=2 face="sans-serif"># rpm -ql centos-release-7-5.1804.5.el7.centos.x86_64
|grep repo</font><br><br><font size=2 face="sans-serif">/etc/yum.repos.d/CentOS-Base.repo</font><br><font size=2 face="sans-serif">/etc/yum.repos.d/CentOS-CR.repo</font><br><font size=2 face="sans-serif">/etc/yum.repos.d/CentOS-Debuginfo.repo</font><br><font size=2 face="sans-serif">/etc/yum.repos.d/CentOS-Media.repo</font><br><font size=2 face="sans-serif">/etc/yum.repos.d/CentOS-Sources.repo</font><br><font size=2 face="sans-serif">/etc/yum.repos.d/CentOS-Vault.repo</font><br><font size=2 face="sans-serif">/etc/yum.repos.d/CentOS-fasttrack.repo</font><br><br><font size=2 face="sans-serif"># rpm -ql oraclelinux-release-7.5-1.0.5.el7.x86_64
|grep repo</font><br><font size=2 face="sans-serif">#</font><br><br><font size=2 face="sans-serif">- Thanks and good luck</font><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">"P.Cookson@bham.ac.uk"
<P.Cookson@bham.ac.uk></font><br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">"spacewalk-list@redhat.com"
<spacewalk-list@redhat.com></font><br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">02/22/2019 07:39 AM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [Spacewalk-list]
Disable downloading stock repos in CentOS</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">spacewalk-list-bounces@redhat.com</font><br><hr noshade><br><br><br><font size=3 face="Times New Roman">This email originated from outside
of the company. Please use discretion if opening attachments or clicking
on links.</font><p><font size=3><br>  </font><br><font size=2 color=#004080 face="Calibri">Hi Paul</font><br><font size=2 color=#004080 face="Calibri"> </font><br><font size=2 color=#004080 face="Calibri">There are a few options to
disable existing repo’s really:</font><br><font size=2 color=#004080 face="Calibri"> </font><br><font size=2 color=#004080 face="Calibri">1.       Move
existing related repo files to a different location (like you’ve described).</font><br><font size=2 color=#004080 face="Calibri"> </font><br><font size=2 color=#004080 face="Calibri">mkdir /root/Original_Repos</font><br><font size=2 color=#004080 face="Calibri">mv /etc/yum.repos.d/* /root/Original_Repos/</font><br><font size=2 color=#004080 face="Calibri">yum clean all <b>and/or</b>rm -rf /var/cache/yum</font><br><font size=2 color=#004080 face="Calibri"> </font><br><font size=2 color=#004080 face="Calibri">2.       Temporarily
disable during update.</font><br><font size=2 color=#004080 face="Calibri"> </font><br><font size=2 color=#004080 face="Calibri">yum --disablerepo=<Repo
Name> update</font><br><font size=2 color=#004080 face="Calibri"> </font><br><font size=2 color=#004080 face="Calibri">3.       Permanently
disable.</font><br><font size=2 color=#004080 face="Calibri"> </font><br><font size=2 color=#004080 face="Calibri">Change the value of “enabled=”
from 1 to 0 in /etc/yum.repos.d/<Repo Name></font><br><font size=2 color=#004080 face="Calibri"> </font><br><font size=2 color=#004080 face="Calibri">Regards</font><br><font size=2 color=#004080 face="Calibri">Phil</font><br><font size=2 color=#004080 face="Calibri"> </font><br><font size=2 color=#004080 face="Calibri"> </font><br><font size=2 color=#004080 face="Calibri"> </font><br><font size=2 face="Calibri"><b>From:</b> spacewalk-list-bounces@redhat.com
<spacewalk-list-bounces@redhat.com> <b>On Behalf Of </b>pdeveau@uottawa.ca<b><br>Sent:</b> 22 February 2019 12:52<b><br>To:</b> spacewalk-list@redhat.com<b><br>Subject:</b> [Spacewalk-list] Disable downloading stock repos in CentOS</font><br><font size=3 face="Times New Roman"> </font><br><font size=3 face="Calibri">Hello,</font><br><font size=3 face="Calibri"> </font><br><font size=3 face="Calibri">I would like to disable the downloading
of the stock repos like Centos-Base.repo and the rest They get in the way
when I perform upgrades (unless I'm doing something wrong?) I usually move
the repos to a different directory so that yum does not see them.</font><br><font size=3 face="Calibri"> </font><br><font size=3 face="Calibri">Thank you,</font><br><font size=3 face="Calibri"><br>-- <br>Paul Deveau<br>Analyste de systèmes principal|Senior Systems Analyst<br>Technologies de l’information|Information Technology<br>Université d’Ottawa|University of Ottawa</font><tt><font size=2>_______________________________________________<br>Spacewalk-list mailing list<br>Spacewalk-list@redhat.com<br></font></tt><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><font size=2>https://www.redhat.com/mailman/listinfo/spacewalk-list</font></tt></a><br><br><BR>
<BR>
<BR>
**<BR>
<BR>
<BR>
<BR>
This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.<BR>
<BR>
**<BR>