Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

For compatibility with a program :

  • I need to keep one of our servers in a specific version, for example rhel 5.1
  • I would like to keep it as updated as possible, but not to change versions.

What should I do:

Configure yum?
Configure satellite repository?

share|improve this question
What specifically do you need to stay static for your application to work correctly? –  MDMarra Sep 30 '09 at 15:34

4 Answers 4

Do not update the package called redhat-release-5Server-

$ rpm -qf /etc/redhat-release

Make sure to pin that package. If you do edit /etc/yum.conf and put this in it


yum would refrain from updating that package and that would keep /etc/redhat-release at its current version.

Not sure why you would want this though...

share|improve this answer
Sheesh, Dennis, you are a spelling fanatic :-) And you already have the 'Strunk & White' badge :-D (joke, joke) Thanks for fixing the typo though... –  wzzrd Sep 30 '09 at 19:55
Is this preventing updates coming after the pinned release? If not, I don't see the point. –  Christophe Drevet Jan 10 '13 at 9:12

You could exclude either. You will get updates all updates within the minor version. The exclude directive excludes the specified packages from update. In this case the version of the OS will not be upgraded but it would still upgrade all packages within that release.

i.e. In your case after putting in the exclude line (You can put either version of exclude), the version of RHEL would stay at 5.6 but any upgrades within RHEL5.6 will be applied.


share|improve this answer

Gunnar - those requirements for Auth Manager and OV NNM are probably tied to the kernel package, rather than the Red Hat release number, so pinning the redhat-release package won't address the fundamental problem.

If you use the yum-versionlock RPM you can lock the kernel package at a specific version to support the vermagic in the drivers from HP or RSA, or modify the /etc/sysconfig/kernel file to set "UPDATEDEFAULT=no" to prevent new kernel package installations from changing your default boot kernel.

This way you'll get all the necessary security and stability patches, but without breaking poorly-designed apps that can't cope with kernel changes properly.

share|improve this answer

There are several reasons to keep a specific version. I have 2 examples. HP OV NNM requires you to NOT update from RHEL 6.2, and RSA Authentication Manager runs on RHEL 5.5! No version updates allowed.


share|improve this answer
That's not an answer to the actual question. Comments or replies to comments should be made as comments, not as separate answers. –  Jenny D Mar 8 '13 at 9:25
That's what I thought, too, but I flagged it as such, and my flag was declined. So I guess this is a legitimate answer, even though all it does is clarify why the question itself is legitimate. –  MadHatter Mar 8 '13 at 10:51

protected by MadHatter Mar 8 '13 at 9:26

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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