<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:Consolas;
        color:#365F91;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">You can disable a repo as described below – if done correctly then it shouldn’t show up with “<b>yum repolist enabled</b>” any longer.
 If you mean stop syncing a repository, though, that can be done from the WebUI as below:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Channels -> Manage Software Channels -> Click Channel Name -> Repositories -> Sync -> Disable Schedule<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Phil<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com>
<b>On Behalf Of </b>Jerome.Meyer@lcsystems.ch<br>
<b>Sent:</b> 26 February 2019 15:33<br>
<b>To:</b> 'Paul Deveau' <pdeveau@uottawa.ca><br>
<b>Cc:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> [Spacewalk-list] FW: Disable downloading stock repos in CentOS<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:9.0pt;font-family:Consolas;color:#365F91">Dear Paul,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:9.0pt;font-family:Consolas;color:#365F91"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#365F91">Do you have found a solution to your repo?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#365F91">From my side I’ve moved all my repos to an old directory but spacewalk will be re-create them.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#365F91">Before creating a crontab job to removing of these files automatically, I wanted to know if another solution exists.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#365F91"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#365F91">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#365F91">Jérôme<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#365F91"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma",sans-serif">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma",sans-serif">
<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a>]
<b>On Behalf Of </b>William H. ten Bensel<br>
<b>Sent:</b> Samstag, 23. Februar 2019 00:02<br>
<b>To:</b> <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
<b>Subject:</b> Re: [Spacewalk-list] Disable downloading stock repos in CentOS<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",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.</span><span lang="DE-CH"><br>
<br>
<a href="https://www.redhat.com/archives/spacewalk-list/2018-February/msg00033.html"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">https://www.redhat.com/archives/spacewalk-list/2018-February/msg00033.html</span></a><br>
<br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",sans-serif"># rpm -ql centos-release-7-5.1804.5.el7.centos.x86_64 |grep repo</span><span lang="DE-CH"><br>
<br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",sans-serif">/etc/yum.repos.d/CentOS-Base.repo</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",sans-serif">/etc/yum.repos.d/CentOS-CR.repo</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",sans-serif">/etc/yum.repos.d/CentOS-Debuginfo.repo</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",sans-serif">/etc/yum.repos.d/CentOS-Media.repo</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",sans-serif">/etc/yum.repos.d/CentOS-Sources.repo</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",sans-serif">/etc/yum.repos.d/CentOS-Vault.repo</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",sans-serif">/etc/yum.repos.d/CentOS-fasttrack.repo</span><span lang="DE-CH"><br>
<br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",sans-serif"># rpm -ql oraclelinux-release-7.5-1.0.5.el7.x86_64 |grep repo</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",sans-serif">#</span><span lang="DE-CH"><br>
<br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Arial",sans-serif">- Thanks and good luck</span><span lang="DE-CH"><br>
<br>
<br>
<br>
</span><span lang="DE-CH" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">From:        </span><span lang="DE-CH" style="font-size:7.5pt;font-family:"Arial",sans-serif">"<a href="mailto:P.Cookson@bham.ac.uk">P.Cookson@bham.ac.uk</a>" <<a href="mailto:P.Cookson@bham.ac.uk">P.Cookson@bham.ac.uk</a>></span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">To:        </span><span lang="DE-CH" style="font-size:7.5pt;font-family:"Arial",sans-serif">"<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>"
 <<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>></span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Date:        </span><span lang="DE-CH" style="font-size:7.5pt;font-family:"Arial",sans-serif">02/22/2019 07:39 AM</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Subject:        </span><span lang="DE-CH" style="font-size:7.5pt;font-family:"Arial",sans-serif">Re: [Spacewalk-list] Disable downloading stock repos in CentOS</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Sent by:        </span><span lang="DE-CH" style="font-size:7.5pt;font-family:"Arial",sans-serif"><a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a></span><span lang="DE-CH"><o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="DE-CH">
<hr size="3" width="100%" noshade="" style="color:#A0A0A0" align="center">
</span></div>
<p class="MsoNormal"><span lang="DE-CH"><br>
<br>
<br>
This email originated from outside of the company. Please use discretion if opening attachments or clicking on links.<o:p></o:p></span></p>
<p><span lang="DE-CH"><br>
 <br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">Hi Paul</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">There are a few options to disable existing repo’s really:</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">1.       Move existing related repo files to a different location (like you’ve described).</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">mkdir /root/Original_Repos</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">mv /etc/yum.repos.d/* /root/Original_Repos/</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">yum clean all
<b>and/or</b>rm -rf /var/cache/yum</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">2.       Temporarily disable during update.</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">yum --disablerepo=<Repo Name> update</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">3.       Permanently disable.</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">Change the value of “enabled=” from 1 to 0 in /etc/yum.repos.d/<Repo Name></span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">Regards</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">Phil</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span><span lang="DE-CH"><br>
</span><b><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="DE-CH" style="font-size:10.0pt;font-family:"Calibri",sans-serif">
<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> <<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>>
<b>On Behalf Of </b><a href="mailto:pdeveau@uottawa.ca">pdeveau@uottawa.ca</a><b><br>
Sent:</b> 22 February 2019 12:52<b><br>
To:</b> <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><b><br>
Subject:</b> [Spacewalk-list] Disable downloading stock repos in CentOS</span><span lang="DE-CH"><br>
 <br>
</span><span lang="DE-CH" style="font-family:"Calibri",sans-serif">Hello,</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-family:"Calibri",sans-serif"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-family:"Calibri",sans-serif">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.</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-family:"Calibri",sans-serif"> </span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-family:"Calibri",sans-serif">Thank you,</span><span lang="DE-CH"><br>
</span><span lang="DE-CH" style="font-family:"Calibri",sans-serif"><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</span><tt><span lang="DE-CH" style="font-size:10.0pt">_______________________________________________</span></tt><span lang="DE-CH" style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>Spacewalk-list mailing list</tt><br>
<tt><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></tt><br>
</span><span lang="DE-CH"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><span style="font-size:10.0pt">https://www.redhat.com/mailman/listinfo/spacewalk-list</span></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>
**<o:p></o:p></span></p>
</div>
</body>
</html>