|
yum update problem, centos 4.92 repo no longer available
because centos 5 is out, I cannot no longer use yum to update/install packages.
the reason is in /etc/yum.repos.d, CentOS-Base.repo has lines like:
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
Because I am still running centos 4.92 instead of 5.0, $releasever is set to 4.92.
I don't want to manually change all $releasever to 5, I guess this will work though.
How can I change the variable $releasever such that yum treats it as 5.0 for now
and 5.x 6.x once new versions come out? I tried "echo $releasever" but got :
releasever: Undefined variable
So, how does yum get the value for this variable? Where is it defined?
|