I just upgraded one of my Tao boxes to Centos 3. The usual procedure is to do a yum update twice, and all is fine.
This time, I had to rebuilddb before I could run the second yum update, and once I started this, yum fails. It says that $releasever is "1.0".
Now I realize I could manually edit my yum.conf and make it go to 3, but this may not fix the problem down the road. Can someone tell me where this variable is defined, and any suggestions on how to fix this problem, please? Might a reinstall of yum packages fix this, as a last resort?
Thanks very much.
Steve Campbell
On 10/10/07, Steve Campbell campbell@cnpapers.com wrote:
I just upgraded one of my Tao boxes to Centos 3. The usual procedure is to do a yum update twice, and all is fine.
This time, I had to rebuilddb before I could run the second yum update, and once I started this, yum fails. It says that $releasever is "1.0".
Now I realize I could manually edit my yum.conf and make it go to 3, but this may not fix the problem down the road. Can someone tell me where this variable is defined, and any suggestions on how to fix this problem, please? Might a reinstall of yum packages fix this, as a last resort?
I think it's parsed from /etc/redhat-release cat /etc/redhat-release CentOS release 5 (Final)
regards, Bent
Thanks very much.
Steve Campbell
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 10/10/07, Bent Terp bent@nagstrup.dk wrote:
I think it's parsed from /etc/redhat-release cat /etc/redhat-release CentOS release 5 (Final)
Very close. It's parsed from the rpm information from the package which provides that file. It's not parsed from the file itself.
On Wed, Oct 10, 2007 at 08:59:36AM -0400, Steve Campbell enlightened us:
I just upgraded one of my Tao boxes to Centos 3. The usual procedure is to do a yum update twice, and all is fine.
This time, I had to rebuilddb before I could run the second yum update, and once I started this, yum fails. It says that $releasever is "1.0".
Now I realize I could manually edit my yum.conf and make it go to 3, but this may not fix the problem down the road. Can someone tell me where this variable is defined, and any suggestions on how to fix this problem, please? Might a reinstall of yum packages fix this, as a last resort?
Thanks very much.
(Manually) get the centos-release rpm and install that, it should handle the rest for you.
Matt
On 10/10/07, Steve Campbell campbell@cnpapers.com wrote:
I just upgraded one of my Tao boxes to Centos 3. The usual procedure is to do a yum update twice, and all is fine.
This time, I had to rebuilddb before I could run the second yum update, and once I started this, yum fails. It says that $releasever is "1.0".
Now I realize I could manually edit my yum.conf and make it go to 3, but this may not fix the problem down the road. Can someone tell me where this variable is defined, and any suggestions on how to fix this problem, please? Might a reinstall of yum packages fix this, as a last resort?
Look in /etc/yum.conf and see what package it looks to for releasever. It's probably not set to centos-release, or you don't have centos-release installed. Mostly make sure that the package referenced in yum.conf is the right one, and is installed.