Hello centos community,
I have a personal repository with self-made RPMs, and i need to include this repository to yum.conf. But i've noticed that yum configuration is overwritten when yum is updated. I can't update yum.conf manually on my servers each time yum is updated ... Is anyone have an idea ?
Thank you.
Martin Hamant wrote:
Hello centos community,
I have a personal repository with self-made RPMs, and i need to include this repository to yum.conf. But i've noticed that yum configuration is overwritten when yum is updated.
No, it shouldn't:
[root@www2 conf]# rpm -qc yum|grep conf /etc/yum.conf
And in the spec file:
%config(noreplace) %{_sysconfdir}/yum.conf
I can't update yum.conf manually on my servers each time yum is updated ...
But centos-yumconf did (until Sep 14, 2004) just link /etc/centos-yum.conf to /etc/yum.conf.
Is that, what you're seeing?
Is anyone have an idea ?
I have my own yumconf package with a preposterously high Epoch - 10. So yum won't install centos-yumconf over my package :)
Ralph
On Thu, 14 Oct 2004 12:02:37 +0200 Ralph Angenendt ra+centos@br-online.de disait:
Martin Hamant wrote:
Hello centos community,
I have a personal repository with self-made RPMs, and i need to include this repository to yum.conf. But i've noticed that yum configuration is overwritten when yum is updated.
No, it shouldn't:
[root@www2 conf]# rpm -qc yum|grep conf /etc/yum.conf
And in the spec file:
%config(noreplace) %{_sysconfdir}/yum.conf
I can't update yum.conf manually on my servers each time yum is updated ...
But centos-yumconf did (until Sep 14, 2004) just link /etc/centos-yum.conf to /etc/yum.conf.
Is that, what you're seeing?
ho ok, maybe it's corrected since this incident
(Subject:[Centos] yum configuration files lost while/after updating ? 21 Sep 2004) ...
i see that there are no symbolic links on a fresh centos 3.3 about yum configuration. centos-yum.conf and yum.conf are two different files.
centos-yumconf SRPMS confirm that /etc/centos-yum.conf is overwrited:
%attr(0644,root,root) /etc/centos-yum.conf
so i'm happy.
Is anyone have an idea ?
I have my own yumconf package with a preposterously high Epoch - 10. So yum won't install centos-yumconf over my package :)
centos-yumconf overwrite centos-yum.conf if i believe the SRPM.
Ho do you make the centos-yumconf package to not overwrite you own package? do you changed the name or release version ? Do you simply replace /etc/yum.conf ?
Thanks !
Martin Hamant wrote:
On Thu, 14 Oct 2004 12:02:37 +0200 Ralph Angenendt ra+centos@br-online.de disait:
I have my own yumconf package with a preposterously high Epoch - 10. So yum won't install centos-yumconf over my package :)
centos-yumconf overwrite centos-yum.conf if i believe the SRPM.
Ho do you make the centos-yumconf package to not overwrite you own package? do you changed the name or release version ? Do you simply replace /etc/yum.conf ?
Well, yes, I changed the name. And the release version, as it is my *own* package, not following yum.conf (as I have a local repository for CentOS and our own stuff, which is kept in sync via rsync).
My package provides yumconf (as does centos-yumconf), to ensure, that my package doesn't get overwritten, I set the epoch in my RPM to 10. Maybe I have to think about that in 5 to 6 years, but then I just could set the Epoch of my package to 20 :)
So even if centos-yumconf does get a higher release version than my package does, the high Epoch still keeps my package from being overwritten by yum.
Ralph
Hi Martin,
I have the same problem. I was frightened when I first saw this behaviour. For me this is catastrophic. It's why I disallowed yum to be updated itself, it's the best thing to do I think, until they have solved the problem.
If some others have had the same problem, please report also.. Thanks.
Kind regards,
Daniel
Hello centos community,
I have a personal repository with self-made RPMs, and i need to include this repository to yum.conf. But i've noticed that yum configuration is overwritten when yum is updated. I can't update yum.conf manually on my servers each time yum is updated ... Is anyone have an idea ?
Thank you.
On Thu, 2004-10-14 at 10:47, dan1 wrote:
Hi Martin,
I have the same problem. I was frightened when I first saw this behaviour. For me this is catastrophic. It's why I disallowed yum to be updated itself, it's the best thing to do I think, until they have solved the problem.
If some others have had the same problem, please report also.. Thanks.
Easy solution.
rpm -e centos-yumconf
and make your yum.conf however you'd like.
-sv
On Thu, 14 Oct 2004 10:55:10 -0400 seth vidal skvidal@phy.duke.edu disait:
On Thu, 2004-10-14 at 10:47, dan1 wrote:
Hi Martin,
I have the same problem. I was frightened when I first saw this behaviour. For me this is catastrophic. It's why I disallowed yum to be updated itself, it's the best thing to do I think, until they have solved the problem.
If some others have had the same problem, please report also.. Thanks.
Easy solution.
rpm -e centos-yumconf
and make your yum.conf however you'd like.
-sv
The original problem is the symbolic link.
On Thu, 14 Oct 2004 16:59:22 +0200 Martin Hamant mh@accelance.fr disait:
On Thu, 14 Oct 2004 10:55:10 -0400 seth vidal skvidal@phy.duke.edu disait:
On Thu, 2004-10-14 at 10:47, dan1 wrote:
Hi Martin,
I have the same problem. I was frightened when I first saw this behaviour. For me this is catastrophic. It's why I disallowed yum to be updated itself, it's the best thing to do I think, until they have solved the problem.
If some others have had the same problem, please report also.. Thanks.
Easy solution.
rpm -e centos-yumconf
and make your yum.conf however you'd like.
-sv
The original problem is the symbolic link.
WAS the original problem :)
Thank you all for your comments and answers.
So if I understand correctly, centos-yumconf is a package that allows us to always have an updated version of CentOS ? Let's say that there is a new U4 update coming or a CentOS 4 version, this yumconf package would update our system to the latest version available, is that correct ?
Else, I didn't really understand the goal of the centos-yumconf package, if anybody could tell me that would be nice. I have read that it helps you to keep up to date, but if it overwrites the old yum.conf then we also loose our specific mirror settings. Or does it look into the yum.conf and change the necessary lines to reflect the new versions ? Also, I thought that this was the job of the $releasever variable and that we wouldn't have to change yum.conf afterwards.. I'm obviously a bit confused..
Thanks for any help on that.
Daniel
----- Original Message ----- From: Martin Hamant To: centos@caosity.org Sent: Thursday, October 14, 2004 5:04 PM Subject: Re: [Centos] another yum question
On Thu, 14 Oct 2004 16:59:22 +0200 Martin Hamant mh@accelance.fr disait:
On Thu, 14 Oct 2004 10:55:10 -0400 seth vidal skvidal@phy.duke.edu disait:
On Thu, 2004-10-14 at 10:47, dan1 wrote:
Hi Martin,
I have the same problem. I was frightened when I first saw this behaviour. For me this is catastrophic. It's why I disallowed yum to be updated itself, it's the best thing to do I think, until they have solved the problem.
If some others have had the same problem, please report also.. Thanks.
Easy solution.
rpm -e centos-yumconf
and make your yum.conf however you'd like.
-sv
The original problem is the symbolic link.
WAS the original problem :)
-- Martin _______________________________________________ CentOS mailing list CentOS@caosity.org http://lists.caosity.org/mailman/listinfo/centos
On Thu, 14 Oct 2004 16:47:03 +0200 "dan1" dan1@edenpics.com disait:
Hi Martin,
I have the same problem. I was frightened when I first saw this behaviour. For me this is catastrophic. It's why I disallowed yum to be updated itself, it's the best thing to do I think, until they have solved the problem.
If some others have had the same problem, please report also.. Thanks.
This problem is apparently solved since 3.3, see my conversation with Ralph in this thread :)