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

Let's say I've got an RHEL machine that is running RHEL5.4. I'd like to upgrade it to 5.7 (latest), but the vendor that makes the software sitting on the machine only certifies it to 5.6. How can I upgrade to 5.6 but make sure I don't end up in 5.7 land? I'm sure I'm missing something basic here, but I can't find it.

Same question applies to CentOS, I suppose, so if someone has an answer there I'd try it.

share|improve this question
Vendor needs to hustle to certify 5.7. – dmourati Nov 8 '11 at 16:30
Agreed. Doesn't help in this case :) – Bill Weiss Nov 8 '11 at 23:07
Vendor == the combination of Oracle and NetApp (using SnapManager for Oracle), for the record. Still no 5.7 or 6 support :( – Bill Weiss Dec 14 '11 at 22:18
They changed it so they only support 5.5 with our stack, 5.6 is too new :( – Bill Weiss May 4 '12 at 18:58

You can do this in centos.. In Redhat I'm sure you can get one from a disc or online somewhere..

You can install the correct release rpm and set yum to ignore installing updates

rpm -q centos-release

So if that is the current version you want to keep.. Then you can add


to your /etc/yum.conf file and it will never go to the next higher version of centos. The process would be similar in redhat land but the package is called


Like i found it here

Install at your own risk since it isn't an official repository. That repo is for 5.6. It has the same version for the release rpm as my redhat 5.6 servers.

share|improve this answer
Hm. Any idea how I would upgrade to an intermediate version? i.e. from 5.4 to 5.6, but not 5.7? – Bill Weiss Aug 13 '11 at 5:43
that last link in my post has the rpm for redhat-release-5Server install that then set the exclude in yum.conf and do a yum update and you'll be locked to 5.6 – Mike Aug 13 '11 at 16:22

There is no forced upgrade in RHEL/Centos land (unlike say Ubuntu where it will prompt you constantly) you can just use the 5.6 media / repos to upgrade and then it won't magically upgrade to 5.7 unless you repeat the same procedure for 5.7

share|improve this answer
Yes, damn those Ubuntu people for notifying people of uninstalled security updates. – womble Aug 13 '11 at 3:43
i'm not talking about security updates, but distro upgrades, they arn't the same thing. – Zypher Aug 13 '11 at 3:44
Ubuntu hassles you when you're running anything other than the latest release? Even when the version you're running is still supported? – womble Aug 13 '11 at 3:45
yep, it'll ask you to do distro upgrades if it exists at least the last time I was on an old version – Zypher Aug 13 '11 at 3:47
How does it do the prompting? motd every time you SSH in? – womble Aug 13 '11 at 3:48
up vote 0 down vote accepted

It turns out that in the RedHat online control panel you can lock a machine to a given version. How did I miss that?

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.