Assuming that reinstalling from zero is not practical, how do I perform an update from CentOS 7 to CentOS 8?

I tried to do a yum install http://mirror.bytemark.co.uk/centos/8/BaseOS/x86_64/os/Packages/centos-release-8.0-0.1905.0.9.el8.x86_64.rpm but apparently that does not work as one would expect. Running yum update after this puts yum into an endless recursive attempt to resolve dependencies.

  • 2
    That's never been a supported upgrade method, but you also installed an i686 package... – Michael Hampton Sep 24 '19 at 16:15
  • @MichaelHampton I fixed the url, it was only on the post, real life test was done using correct arch. – sorin Sep 24 '19 at 16:17
  • Aha. Well, I did some looking around. It appears that C8 is still being pushed out to mirrors. It has not been officially announced. Try again tomorrow, maybe? – Michael Hampton Sep 24 '19 at 16:22

Red Hat provide the tool leapp to upgrade from EL 7.6+ to 8, however according to this CentOS bug, there are no plans to support it on CentOS. Trying to point an existing 7.x machine to the 8.x repos and running yum update will likely not work; it's never been a supported method. Your only choice is a reinstall.

  • is a reinstall truly necessary? see a bunch of upvotes, but there seem to be guilds showing how to upgrade... do they work? – warath-coder Dec 20 '19 at 14:18
  • @warath-coder The guides I've seen aren't necessarily an official upgrade path/procedure endorsed by CentOS. Because of the core changes, the risk of something going south during the process is very high. From a production point of view, it is likely that a migration is the safest possible "upgrade path". Install CentOS 8 fresh and migrate configs and software packages. – James White Jan 4 at 17:46
  • @JamesWhite yes, that is always the "safest" path from a breaking code change. However, lots can go wrong doing that as well :( any new guides on best way to do that, or are the "tried/true" methods still the best? – warath-coder Jan 16 at 12:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.