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.
I usually run the following command in that folder: sed -i 's/enabled=1/enabled=0/' *.repo 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. Kind regards, Andreas Dijkman On 24 Nov 2017, at 14:55, Olivier FONT <[email protected]<mailto:[email protected]>> wrote: Hi folks, I face an issue when I update yum or upgrade CentOS. The /etc/yum.repos.d folder is recreated and client cannot update or install any software anymore. Does anybody faced this kind of problem already? Do you have any advice to provide to avoid this problem? Thank you. Regards, Olivier FONT _______________________________________________ Spacewalk-list mailing list [email protected]<mailto:[email protected]> https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
