[Spacewalk-list] CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread Nicole Beck
Hello, I have a Spacewalk 2.9 server and a CentOS 7 client using the Spacewalk 2.9 client. After registering the client with rhnreg_ks, I moved all of the files from /etc/yum.repos.d to /etc/yum.repos.d.o. The "yum repolist" command shows that I'm using the repositories from my spacewalk

Re: [Spacewalk-list] CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread Nicole Beck
Thank you for your replies! This is the repolist after installing the spacewalk client software but before registering the client: # yum repolist Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.siena.edu * epel: mirror.siena.edu * extras:

Re: [Spacewalk-list] CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread Gerald Vogt
On 27.11.19 19:25, FRANK Michael wrote: We disable the original repos by a command. I will send you the details tomorrow when I am back at work. It's enough to edit the file and set the repos to "enabled=0". yum-config-manager or any other script will just do the same... -Gerald

Re: [Spacewalk-list] CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread David Dales
If I'm not mistaken setting the "enabled=0" won't work. If Spacewalk/Yum discovers multiple repository sources with the same source URL it will fail. We use puppet to remove the entries under /etc/yum.repos.d/ to avoid this problem -Original Message- From:

Re: [Spacewalk-list] CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread FRANK Michael
Hi, We disable the original repos by a command. I will send you the details tomorrow when I am back at work. Michael FRANK Supervisor Global Monitoring Architecture Faurecia Clean Mobility T +49 821 4103 420 ● M +49 171 9967 206 michael.fr...@faurecia.com Faurecia Emissions Control

Re: [Spacewalk-list] [EXT]:Re: CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread Dawn Mathews John
Just an assumption. I have been through this situation, that the /etc/yum.repos.d/ CentOS-* are enabled even after disabling or deleting the files. Upon investigating I found that, updating packages by yum update will also update the rpm package - centos-release*.rpm. Once this RPM is installed,

Re: [Spacewalk-list] CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread Brian Long
Quick-n-dirty kickstart postinstall command we run: # Disabling CentOS Internet Repos egrep '^\[.*\]' /etc/yum.repos.d/CentOS-*.repo | awk -F: '{print $2}' | sed -e 's/\[//g' -e 's/\]//g' | xargs yum-config-manager --disable ___ Spacewalk-list mailing

Re: [Spacewalk-list] CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread David Dales
Nope, that's exactly what the centos-release package does. It's only purpose is to install the repo file and update the /etc/centos-release which is linked to /etc/redhat-release Only thing you can do is exclude it from patching or remove it from the repository altogether From:

Re: [Spacewalk-list] CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread Gerald Vogt
On 27.11.19 19:51, Nicole Beck wrote: Thank you for your replies! This is the repolist after installing the spacewalk client software but before registering the client: # yum repolist Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base:

Re: [Spacewalk-list] [EXT]:Re: CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread Kennedy, Cameron
I am suspect that you don't have all the enable=0 set throughout the repo file. (there is usually more than 1). Perhaps for the sake of testing, Remove the files from /etc/yum.repos.d and then try again. Then add them back in to identify the offending one. Also check /etc/yum.conf doesn't have

Re: [Spacewalk-list] [EXT]:Re: CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread Gerald Vogt
On 27.11.19 20:11, Dawn Mathews John wrote: Just an assumption. I have been through this situation, that the /etc/yum.repos.d/ CentOS-* are enabled even after disabling or deleting the files. Upon I find that most peculiar that you have centos7 repositories still enabled even after

Re: [Spacewalk-list] CentOS repos reappear in /etc/yum.repos.d

2019-11-27 Thread Gerald Vogt
The centos-release rpm contains all the repo files. If they are missing they are restored during the next install/update. That is standard rpm behavior for config files in rpms. Don't (re)move the CentOS repo files. If you don't want to use those repos, modify the files and set all