<div dir="ltr"><div><div>Alright.<br><br></div>Thanks for the advise.<br></div>I will try this.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-24 15:13 GMT+01:00 Andreas Dijkman <span dir="ltr"><<a href="mailto:andreas.dijkman@cygnis.nl" target="_blank">andreas.dijkman@cygnis.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;line-break:after-white-space">
Why would you delete that folder? Just set all the repos to enabled=0 to disable the repositories that are created by packages and leave all the RHN-stuff in tact. 
<div><br>
</div>
<div>I usually run the following command in that folder: sed -i 's/enabled=1/enabled=0/' *.repo</div>
<div><br>
</div>
<div>If any RPM is updating the repo-files they usually don’t get overridden by the updated RPM, but the new file is put along side the modified repo-files with the extension .rpmnew added to it. That way yum won’t pick up the new files and all file-based
 repositories are disabled by the sed-command.</div>
<div>
<div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;line-height:normal">
<br class="m_8057426829510581686Apple-interchange-newline">
Kind regards,<br>
Andreas Dijkman<br>
<br>
</div>
</div>
<div><br>
<blockquote type="cite"><div><div class="h5">
<div>On 24 Nov 2017, at 14:55, Olivier FONT <<a href="mailto:contact@olivierfont.fr" target="_blank">contact@olivierfont.fr</a>> wrote:</div>
<br class="m_8057426829510581686Apple-interchange-newline">
</div></div><div><div><div class="h5">
<div dir="ltr">
<div>
<div>
<div>
<div>Hi folks,<br>
<br>
</div>
I face an issue when I update yum or upgrade CentOS.<br>
</div>
The /etc/yum.repos.d folder is recreated and client cannot update or install any software anymore.<br>
<br>
</div>
Does anybody faced this kind of problem already? <br>
</div>
Do you have any advice to provide to avoid this problem?<br>
<div>
<div>
<div>
<div>
<div><br>
Thank you.<br>
<br>
Regards,<br>
Olivier FONT
<div>
<div class="m_8057426829510581686gmail_signature" data-smartmail="gmail_signature">
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
______________________________<wbr>_________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/spacewalk-<wbr>list</a></div>
</blockquote>
</div>
<br>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/spacewalk-<wbr>list</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cordialement,<br>Olivier FONT<div>---------------------------------<br><div><div><a href="http://www.olivierfont.fr/" target="_blank">http://www.olivierfont.fr</a></div></div></div></div>
</div>