Hi,
On Sun, 10 Apr 2011, Kai Schaetzl wrote:
Ljubomir Ljubojevic wrote on Sun, 10 Apr 2011 12:53:54 +0200:
Just to be sure there is no misunderstanding. I add that line in any *.repo file in /etc/yum.repos.d/ folder, as an option for every repository definition in those files where repository has "releases" rpms.
I don't understand the problem. If you edit a .repo file it is usually not overwritten, the new repo file is saved as .rpmnew. So, I think this creates only a problem in the case that you completely remove a .repo file. What am I misunderstanding? (Sorry for the pun, I think I'm mostly talking to Tom ;-)
I cannot speak for the other Tom but in my case I rebuild the centos-release rpm and add my own repo files so that all of my machines pull from my local repos. Yes, I know that the modified repo files do not get overwritten but that does not help for new machines nor does it help when I change my local configuration. When I rebuild the centos-release rpm I actually modify it so that a new version of the rpm overwrites any existing .repo files. That way I know all of the machines under my control are only pulling updates I have approved and placed into my local repos.
It would be nice if this srpm was released with the main distro. Rebuilding other packages can come later when all of the srpms are available but this particular package is important for me being able to update the machines. In fact I usually end up hacking up the first cut of the centos-release rpm for a new release based on the previous version (in this case 5.5) so that I can do my upgrades. It is not all that hard to do but it would be easier if I had the official srpm.
Regards,
Tom Diehl wrote on Sun, 10 Apr 2011 11:47:04 -0400 (EDT):
I cannot speak for the other Tom but in my case I rebuild the centos-release rpm and add my own repo files so that all of my machines pull from my local repos. Yes, I know that the modified repo files do not get overwritten but that does not help for new machines nor does it help when I change my local configuration. When I rebuild the centos-release rpm I actually modify it so that a new version of the rpm overwrites any existing .repo files.
Ah, I see now why you are doing this, I wasn't aware that the release package contains those .repo files. *However*, as I said earlier (and unless you use different filenames for your local repo) the new centos-release will *not* overwrite your existing CentOS-Base.repo file etc. So, if this is your concern: this is not a problem.
Kai
Kai Schaetzl wrote:
Ah, I see now why you are doing this, I wasn't aware that the release package contains those .repo files. *However*, as I said earlier (and unless you use different filenames for your local repo) the new centos-release will *not* overwrite your existing CentOS-Base.repo file etc. So, if this is your concern: this is not a problem.
Kai
In order to use my repo files, I move CentOS ones to backup subfolder, so update reinsert them.
Since I already have my solution, I'll not return official *.repo files, but I will keep in mind ".rpmnew stuff".
I created my plc-* (mirrors) and plnet-* (addon packages from various repos for desktop use and packages compiled by me) release packages for various uses that are saved in subfolder(s) and then I developed small shell script that makes it possible to switch from one *.repo set to another (like from all of my repositories enabled, with official disabled, to only official with only my additional repositories). So if my server is down, I can update and install from official mirrors with ease.
Ljubomir