LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 04-15-2007, 11:44 AM   #1
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Rep: Reputation: 30
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?
 
Old 04-15-2007, 12:23 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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
 
Old 04-15-2007, 04:59 PM   #3
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
I also installed centos-release-notes.
Now it works.

Thanks.
 
Old 04-15-2007, 07:10 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You are welcome, glad to help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cdrom under fc5 no longer works after a yum update pfrancois Fedora 0 11-11-2006 03:07 PM
FC5 yum repo problem reitsma Fedora 4 10-10-2006 07:18 PM
ntfs no longer recognized after kernel update using YUM. schitzo1978 Linux - Newbie 2 02-27-2006 03:48 AM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration