I manage a bunch of CentOS 6 workstations that have no internet access, so none of them can reach out to centos.org or any mirrors.
I created repos internal to our network that mirror CentOS-Base, CentOS-Updates, and EPEL and put these repos on each workstation.
After an update though, yum re-adds all the repos that I deleted because they can't be accessed anyway - CentOS-Debuginfo, *-fastrack, *.Media, and *Vault.
This is very annoying - how can I stop this from happening and force yum to stick to the internal repos?
Thanks
yum keeps re-adding old repos??
Re: yum keeps re-adding old repos??
Don't delete the CentOS .repo files, but instead, set enabled=0 for each repository listed in those .repo files.
Re: yum keeps re-adding old repos??
That sounds like kind of a work around. Isn't it possible to just stop them from being re-created altogether?
Re: yum keeps re-adding old repos??
No. The files belong to the centos-release package so if that gets updated and the files are missing then they get put back. They are marked as config,noreplace in the spec files deliberately so that if the files are present but modified then they do not get replaced and a .rpmnew file is created instead. It's not a workaround, it's the correct fix.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke