upgrade RHEL from 7.2 to 7.4
Am a basic linux user and i would like to upgrade RHEL 7.2 to 7.4. i would like to upgrade the server offline by downloading required kernel versions.
Responses
Hi ! :)
RHEL 7.5 was just released and I recommend a fresh installation of the system, too many things changed since RHEL 7.2 ...
Download the Red Hat Enterprise Linux 7.5 Binary DVD, which contains everything needed to install the operating system.
Don't be afraid - the fresh installation and configuration takes less time than fixing dependency problems and other issues.
Regards,
Christian
You're welcome ! :) The final version of RHEL 7.5 was released on April, 10th : official announcement
Regards,
Christian
Hello MOI-gdis,
I've done updates from systems I've used and originally loaded from 7.2 and updated them to the next minor version with no issue. Now if it works, great, if not, just make sure in advance to save anything important.
I'll wager the beverage of Christian's choice that the yum update from 7.2 to 7.4 will work fine (payable at the Red Hat Summit).
RJ
Hi RJ ! :)
The "magic word" is : NEXT minor point release ... upgrading from RHEL 7.2 to RHEL 7.5 skips two releases -
not to speak about the jump from GNOME 3.14 to GNOME 3.26, in case the version Server with GUI is in use.
Even if (only) upgrading from RHEL 7.2 to RHEL 7.4 - this is something where several problems are possible.
Sure, I know there are many discussions about what's the better way ... I think both ways have pros and cons.
Drinking a beer with you at the summit is a nice idea - would love to do that ... unfortunately I won't be there.
I wish you a lot of fun and maybe you will meet Jan Gerrit Kootstra and drink one or more beers with him ... :)
Regards,
Christian
Perhaps I've been excessively lucky, but I've numerous times taken a system from 7.[two or more numbers lower] to 7.current with no consternation. That being said, I may have had to deal with a few oddball rpms, but nothing so significant that it ever prohibited me from doing the yum update for a number of more than one minor release (the number to the right of the period ".").
Take any precautions necessary to protect any necessary configurations, data, and attempt the yum update. You can do a echo n | yum update to see if it generates any yum errors.
Hopefull I'll see Jan Gerrit Kootstra at the summit, I'd buy him a beer regardless of this wager.
Hopefully I won't owe someone a beverage for a lost bet here. MOI-gdis - evaluate, and let us know how it goes. See this article that speaks of upgrading from one minor (not major) but minor release to any higher minor release https://access.redhat.com/solutions/92383
That being said, I'll ask my Technical Account Manager if he's heard anything, but (again) perhaps I'm excessively lucky and I've not had significant enough issues to go from one minor release jumping several minor releases. We generally keep everything patched, however, sometimes a customer pulls out a system that's "not been on the radar" and I've had to patch it numerous minor releases.
I'll post back in here. I've been very fortunate, not sure all will share the good fortune I've had in upgrades skipping numerous minor releases.
Regards,
RJ
Hi R. I've run into difficulties upgrading Redhat versions. I have local repositories on the server. I do not call out to the internet to pull down the latest updates. How can I avoid updating the OS to the latest version? For example, if I am upgrading from 7.3 to 7.4, I don't want the server to automatically upgrade to 7.5 when the update is available in the same repository. I've tried yum --releasever=7.4 update (https://access.redhat.com/solutions/238533) but it still updates to 7.5. Any advice?
Hi RJ ! :)
Please don't get me wrong, me myself, I once performed an upgrade from RHEL 7.2 to RHEL 7.3 and everything worked fine.
When you stick to the Red Hat repositories exclusively and have the extras and the optional channels enabled - it just works.
But many of the users have external repositories enabled and additional stuff installed ... which often leads to various issues.
A lot of them are new to RHEL and don't have much experience how to cope with these issues and how to find a workaround.
That's why I generally recommend clean installations, simply because they take less time then repairing messed up systems.
Hope I could clarify and explain my opinion. Enjoy the summit with your friends, and ... don't bet and don't drink too much. :D
Cheers :)
Christian
Have you had any luck with upgrading OS's with local repositories? Wanting to get some guidance on how to avoid getting upgraded from 7.5 automatically. I've tried upgrading to 7.3 to 7.4 and in these upgrades the repositories have always been local and eus and optionals wasn't available. I always get kicked to 7.5 automatically.
Hi Anne,
I am always using the latest stable edition of any system, so I never work with local repositories. What you can do is to create a local repository which contains the packages from the RHEL 7.4 release and perform an offline upgrade to that edition, but you should disable the network in this case. Otherwise (when you run an online update) yum will pull in the latest stable packages ... which actually are from the current RHEL 7.5 release. :)
Regards,
Christian
Hi Anne,
In case you (for whatever reason) want to stick with RHEL 7.4 permanently for a longer time and get online updates : you have to have an EUS subscription and replace the standard repos with the EUS repos, right as being explained in the article being provided by RJ (R. Hinton) in his comment down below. Hope we could answer your questions and help you ! :)
Regards,
Christian
Ok that explains it. I had no EUS subscription. Is there a Redhat article you can refer me to that basically guides you on what you need for 7.4 only? Will the EUS subscription automatically block 7.5 updates?
Setup this? ~~ Red Hat Enterprise Linux Server ~~ Red Hat Enterprise Linux Server -4 Year Extended Update Support ~~ sudo subscription-manager repos --enable=rhel-7-server-rpms ~~ sudo subscription-manager repos --enable=rhel-7-server-eus-rpms ~~ sudo subscription-manager repos --enable=rhel-7-server-extras-rpms ~~ sudo subscription-manager repos --enable=rhel-7-server-optional-rpms ~~
Hi Anne,
As I said before, I'm using always the latest RHEL edition, so I don't have any experience with EUS.
I assume that when you disable the standard and enable the EUS repo, you'll set it to use 7.4 only.
But you can search for articles in the Documentation - or find something in the Knowledgebase. :)
Regards,
Christian
Hi Anne,
It's me again ... :) I've found something in another discussion where Sadashiva Murthy M provided a solution which worked for him in such a case and probably might be exactly what you're looking for.
Execute the following command : subscription-manager release --set=7.4
Clean up everything : sudo yum clean all | sudo rm -r /var/cache/yum
Update the software sources : sudo yum update redhat-release-server
Hope that it works for you too (as I said, I have no experience with "release locking") ... good luck ! :)
Regards,
Christian
I've done it in the past, yes. You could create a local repository of 7.5 from the install disk and try an upgrade. Do a "yum update" after successfully creating a local repository and check to see if it throws any errors; do a yum clean all first.
If you see errors, look in /etc/yum.repos.d for any errant (outdated, ancient) repositories. to see if that's what is causing the issue. You can see all repos with yum clean all and namely yum repolist (the clean all is simply to remove from cache any results that might be an improper distractor).
Let us know how it goes.
Anne,
Apologies, I believe I missed some of your question, but please examine https://access.redhat.com/solutions/238533 which might more closely address your specific question that I missed earlier. (and Thanks Christian) p.s. that is a lengthy article addressing several versions, check it out in whole
Regards,
RJ
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
