How to update RHEL7.0 without upgrading it to the next version (7.1)

Latest response

i have a rhel 7.0 machine and i'm trying to install all available updates with yum update but i do not want it to be upgraded to the next available version 7.1 or higher.
my research on the web shows that u can lock the release package from being upgrades but when i do this i came across one of the packages that had a dependency on this packages. i don't want to go into a loop where i start to exclude packages just in order not to push it to the next version.
i also know that i can use yum security updates to install only security packages but then i'm still missing some other packages that can be upgraded on the same version level.
so how can i simply update the os with all relevant packages and still be on the same version of OS? (RHEL 7.0)
any assistance on how this can be achieved will be much appreciated.

Responses

Just curious - is there any particular reason to do that? Because what's matter really is the major version, the minor version is just a snapshot in time. They may be reasons to exclude some packages but definitely all of them.

One possible reason could be for support. I know for example swift requires rhel6.4 otherwise first thing the do is to say "you are running an unsupported OS".

Yeah I met some 3rd party vendors pretending this, but that's just their lack of knowledge. After explaining host the RHEL versions works, they usually allowed to use the latest version and even updated their own guides.

What you normally would want is Extended Update Support. This allows you to remain at a particular point release with updates for 24 months after the intial release. However, in your case, referencing the Red Hat Enterprise Linux Life Cycle, EUS is not available for 7.0.

Are you register to a Satellite server or directly to cdn.redhat.com?

im using cdn. * after reading about rhel-eus it seem that this might do the trick but im not sure yet. * thinking again about the minor version as a snapshot in time might bring me to think that staying on the same minor version should almost be considered as not updating at all.. but im not sure about this.

One possibility could be to set a release version in yum then.

echo '7.0' > /etc/yum/vars/releasever

Check it worked:

python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'
subscription-manager repos # check the URL points to 7.0 and not 7Server

Using a Satellite server allows you to sync the latest version of minor release and let you choose the release version for a specific host in the GUI. Be aware that it could create some dependencies issue regarding the version if you are using multiple repos.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.