How to update RHEL7.0 without upgrading it to the next version (7.1)
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
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.
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
