5

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?

Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151
criss
  • 153
  • 2
  • 3
  • 9

2 Answers2

11

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

$ rpm -qf /etc/redhat-release
redhat-release-5Server-5.3.0.3

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

[main]
exclude=redhat-release-5Server-*

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...

Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151
wzzrd
  • 10,409
  • 2
  • 35
  • 47
  • 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
  • 1
    Is this preventing updates coming after the pinned release? If not, I don't see the point. – Christophe Drevet Jan 10 '13 at 09:12
0

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.

http://www.phy.duke.edu/~rgb/General/yum_HOWTO/yum_HOWTO.txt

Sameer
  • 4,118
  • 2
  • 17
  • 11