Friday, January 28, 2011

How can I keep the RHEL version static (e.g. RHEL 5.1)?

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?

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

    wzzrd : Sheesh, Dennis, you are a spelling fanatic :-) And you already have the 'Strunk & White' badge :-D (joke, joke) Thanks for fixing the typo though...
    From wzzrd
  • I also have this question as a particular vendor only support/certifies their application on RHEL 5.4. Therefore I would like to keep the system as up to date without applying updates delivered with a future minor version number bump. Does pinning the redhat-release package prevent package updates delivered with later RHEL updates from being installed?

0 comments:

Post a Comment