CentOS 7 - end of life in 2024, then what

We are working on a software solution and some of our providers are really CentOS 7 centered.

CentoS 7 will continue to produce through the remainder of the RHEL 7 life cycle, which will end sometime in 2024.

CentOS 8 will receive updates till December 2021.

CentOS Stream was announced by Red Hat but is apparently not a replacement for CentOS.

I am not very into diving in this if options are uncertain in the near future with CentOS.

Question: what are the options for CentOS 7 users when RHEL 7 reach its end of life and users need a production ready server?


Solution 1:

If RHEL binary compatibility is not strictly required and if using in-tree kernel modules only (i.e.: no out-of-tree kmods are required), CentOS Stream should remain a viable option.

Otherwise you can use one of the new RHEL clones, such as AlmaLinux, RockyLinux or even Oracle Unbreakable Linux (in this case, be sure to select the RHEL-compatible kernel rather than its own customized kernel). Personal note: I am using RockyLinux with no issues at all (I migrated from a CentOS 8 box with the migrate2rocky script) but, as always, your mileage may vary.

Finally, if you are sure to need fewer than 16 RHEL instances, you can use plain simple Red Hat Enterprise Linux from Red Hat's free tier (with no support, obviously).

EDIT: as wisely suggested in other answers, migrating to a different distributions as Debian, Ubuntu, etc. is a very reasonable approach. I did the same (rebuilding with latest Ubuntu LTS) in environments where RHEL compatibility was not required. Debian and Ubuntu officially support in-place upgrade paths while most RHEL clones only have unofficial support - RHEL itself and Oracle Unbreakable Linux being the exceptions, with fully supported leapp upgrades - but things are changing now.

Solution 2:

This answer is biased - I'm working for a company making an RHEL clone.

You have multiple options:

  • Migrate to stable platforms with a good history like Debian and Ubuntu. Ubuntu actually became even more popular last year when it comes to enterprise market. They made a huuuuge pivot.
  • Migrate to SUSE Linux - they have a very similar business model to RHEL. Unfortunately, there is no free clone of SLES. EDIT: There is SUSE Leap that aims to be binary compatible with SLES - see @sebix comment.
  • Migrate to one of the new RHEL clones. The ones with the most traction are AlmaLinux and Rocky Linux. In my opinion Alma is a much better choice. The organization is Non-Profit, CloudLinux OS that started it has a good history with the Linux community - still the project is run mainly by a professional company. In the meantime, Rocky Linux was created by the CentOS founder. The company is For Profit, Public Benefit Corp and is started/backed by CIQ that was/is a company owned by the very same person.
  • Migrate to the RHEL clones with a bit longer history. Here you have Oracle Linux that, IMO in many cases, is phenomenal. The only problem with Oracle Linux is, well Oracle... The other choice that I can propose is EuroLinux (the company I'm working for). We are honest - it's open core model (everything is free to use. One can pay for support or create your own local RHEL clone with our build system). We are better in multiple places, and in some we are worse (for example, our community is tiny).
  • The last options are enterprise Linuxes that are the closest to the thing that CentOS was. Here goes Springdale Linux. Princeton University runs it, so they and AlmaLinux are the ones that are truly not profit/community-based.

Lastly, if I could recommend something - don't jump the gun - you will have enough time to see which project will be the next stable CentOS replacement, in the case of the enterprise Linuxes it is not a sprint but a marathon.

Solution 3:

I had to get our system off CentOS6 (we'd been slacking) when the news about 8 hit. Ultimately I wound up moving us off of DevOps and CentOS to Ubuntu 20.04 (LTS release).

I realize that it's not a 1:1 move, but we were largely using web servers and most of our setup could be replicated in Ubuntu. The pain points were

  1. Switching users. CentOS uses httpd for the user, while Ubuntu uses www-data (running them in a hybrid config was a pain)
  2. Services were named differently as well. PHP processes are no longer php-fpm, but phpX.X-fpm. Apache is not httpd but apache2
  3. Finding new repo sources for some packages. We run a later version of PHP than the LTS versions offer

The advantage is that Ubuntu's community is much broader and better supported. It was worth the hassle in the end to just up and ditch CentOS.