Update Red Hat Enterprise Linux's Packages Only To Specific Point Release

Let's say that I have one RHEL6.2 64bit server running. Current latest version available is 6.4. Running "yum update" will update my server up to 6.4 straight away. What if I want to update only to certain point release?

For example, I want to update RHEL6.2 server only to RHEL6.3, not to 6.4. Any idea?

Thanks in advance,


Solution 1:

Use subscription-manager to set the point release you want to lock your system to.

subscription-manager release --set=6.3

Solution 2:

I noticed this new workaround in the redhat KB:

Red Hat Enterprise Linux 6.2 Manually Setting a Preferred Operating System Release Beginning in Red Hat Enterprise Linux 6.3, Red Hat Subscription Manager could set a preferred operating system version to use to limit automatic updates for a system. This is covered in Section 5.7.4, “Setting Preferences for Systems”. However, it is not possible to set a preferred operating system through Red Hat Subscription Manager on older versions of Red Hat Enterprise Linux.

The system can be restricted to a certain operating system version on Red Hat Enterprise Linux 6.2 by editing the yum configuration. For example, to limit yum updates to 6.2-version packages:

[root@server ~]# echo 6.2 > /etc/yum/vars/releasever

Update: the above did not work for me on a new install of 6.2.