How can I keep the RHEL version static (e.g. RHEL 5.1)?
Solution 1:
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...