LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   yum update problem, centos 4.92 repo no longer available (https://www.linuxquestions.org/questions/linux-distributions-5/yum-update-problem-centos-4-92-repo-no-longer-available-546238/)

parv 04-15-2007 11:44 AM

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?

Lenard 04-15-2007 12:23 PM

Install one of these;

http://mirror.centos.org/centos/5/os...tos.2.i386.rpm

or

http://mirror.centos.org/centos/5/os...s.2.x86_64.rpm

parv 04-15-2007 04:59 PM

I also installed centos-release-notes.
Now it works.

Thanks.

Lenard 04-15-2007 07:10 PM

You are welcome, glad to help.


All times are GMT -5. The time now is 05:32 AM.