Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently I grabbed some preconfigured CentOS 5.0 instance from EC2 and installed our stuff on it from rightscale. The instance was a little old, but I assumed that it would be up to date after a single yum upgrade.

However, for reasons beyond my understanding, CentOS is not updated beyond 5.0:

[root@ip-10-102-63-111:~] yum upgrade
Loading "installonlyn" plugin
Setting up Upgrade Process
Setting up repositories
Reading repository metadata in from local files
No Packages marked for Update/Obsoletion
[root@ip-10-102-63-111:~] cat /etc/redhat-release
CentOS release 5.0 (Final)

The repositories are active and even my EPEL packages are being updated, but it seems that the person who created this instance somehow fixed it at 5.0. However, I really need to update to the latest 5.x. How can I get yum upgrade to work again?

share|improve this question
Jeroen, forgive me for mentioning this, but you have been a member of SF for six months. In this time, you have asked seven questions, but accepted the answer for none. Local etiquette is that after a reasonable time, you accept the best answer for any given question, and that helps drive SF's reputation system. You don't have to do this, but as a result we see a big red warning "0% accept rate" by your username. That warning may discourage some people from answering your questions. If you had time to go through your old questions and accept an answer for each, that would be good. – MadHatter Oct 4 '11 at 19:32
Can we get the output of "yum repolist?" – Rilindo Oct 4 '11 at 20:30
Mad - yes I forgive you :-) And thanks for mentioning this, I was not aware of these courtesies. Actually I assumed that the right answer was decided by voting from all members. Anyway I'll go over my previous posts when I have some time. – Jeroen Oct 4 '11 at 20:54
Rilindo - there is no such thing as yum repolist ? Do you mean yum list or yum grouplist maybe? – Jeroen Oct 4 '11 at 20:57
up vote 2 down vote accepted

Ah I solved the problem. Taking a close look at /etc/yum.repos.d/Centos.list revealed that the version was hardcoded in the repository url, e.g:


So I replaced "5.0" with "5" in every line and then did a yum clean all followed by a yum upgrade which updated me straight to CentOS 5.7.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.