LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2009, 11:26 PM   #16
ngohieutp
LQ Newbie
 
Registered: Dec 2006
Posts: 10

Original Poster
Rep: Reputation: 0

I tried to edit my repos :
Code:
[base]
name=CentOS-4.7 - Base
mirrorlist=http://mirrorlist.centos.org/?release=4.7&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/4.7/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#released updates 
[update]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=4.7&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/4.7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=1
protect=1
But it doesn't work. My system is currently using CentOS 4.5. I will upgrade it to 4.7. I hope that my manager will agree with that change.

Thank you very much.
 
Old 08-10-2009, 12:10 AM   #17
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Go back and read my post again. You did not follow what I asked you to do(and as you have seen it does matter).

Edit: You may also have to run a "yum clean all" after any change to clear any cached information.

Last edited by lazlow; 08-10-2009 at 12:15 AM.
 
Old 08-10-2009, 03:36 AM   #18
O.Haessler
LQ Newbie
 
Registered: Nov 2006
Posts: 11

Rep: Reputation: 1
Hi,

so the link is ok

Quote:
http://mirrorlist.centos.org/?release=4.7&arch=$basearch&repo=os
Well, just two questions:

1. What error are you getting??

2. If you hardcode version 4.7 in "Base" and in "Update"and run "yum update", is the System not updating directly to 4.7??

Well I really, really would prefer to update to the most stable Release either of 4.x or 5.x (lazlow: you are right.. if there is no need to make an update from 4.x to 5.x, it shouldn`t be done, but that`s why I asked for the need of a 4.x version)

Either hardcoding the repos is not a very good way.. it may help you this time, but next time you are searching for a yum problem not thinking about that you hardcoded some repos may drive you crazy.
 
Old 08-10-2009, 03:57 AM   #19
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Quote:
What you may have to do is comment out(add a # in front of)the above line and TEMPORARILY hard code in the proper address(just until you can get through a basic yum update).

Which is why I put it the way that I did.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How To Install MySQL 5.1 in CentOS? chillyroll Linux - Newbie 6 07-23-2010 02:16 AM
How to install kde ,apache mysql php and qt4 in centos krmkrishnan Linux - Newbie 3 07-06-2009 07:46 AM
error in installing mysql i.e. mysql-5.1.34-linux-powerpc-glibc23 in centos 4.4 i686 pankajd Linux - Newbie 1 06-07-2009 03:00 PM
cannot install mysql-server Centos 5.2 sycamorex Linux - Server 5 03-16-2009 08:12 PM
Install MySQL on CentOS 3.4 gives error Azzath Linux - Server 2 05-24-2007 12:59 PM


All times are GMT -5. The time now is 12:33 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration