[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Spacewalk-list] Problem after update of yum

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 <contact olivierfont fr> 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.

Olivier FONT

Spacewalk-list mailing list
Spacewalk-list redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]