23

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?

3
  • 2
    Have you asked your providers what their plans are ? And decide if you need to stick with an RPM-based distro or bridge to one of another ilk.
    – Criggie
    Oct 19 at 10:05
  • 1
    @Criggie I am discussing with them at this very moment. I think there is politics involved too - with regard to support legacy stuff and users who can't easily upgrade (think big public organization)
    – marsisalie
    Oct 19 at 15:55
  • Despite the upvotes and popularity, this question is not a good fit for Server Fault as it invites poor, opinionated and broad answers. Every answer is some variation of "use a server that will support the services required for your use case". Because the question is so broad, there can be no clear answer. The question could be on-topic if it were along the lines of "when CentOS 7 is EOL in 2024, we will migrate to $LinuxDisbution. Will it support $servicerequirment?" or something similar.
    – Paul
    Nov 11 at 15:38
24

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.

7
  • @shodanhok: so this means we will have to reinstall the OS somewhat, as I assume there is no 'upgrade' path possible from CentOS 7 to the various optoins you mentionned? In the CentOS forum forums.centos.org/viewtopic.php?t=77742 a mod mentionned 'There is no upgrade from one CentOS major version to the next. There may be web pages out there claiming you can but you cannot.' ?
    – marsisalie
    Oct 18 at 15:44
  • 2
    @marsisalie unfortunately, there is no official upgrade path from CentOS 7 to CentOS 8 or one of the other RHEL clones.
    – shodanshok
    Oct 18 at 16:28
  • 1
    @marsisalie Oracle provides a script that will convert a CentOS system to OEL. We have successfully used the script on a large number of servers.
    – doneal24
    Oct 19 at 14:50
  • 2
    @marsisalie And you can follow up the conversion with an upgrade from OEL7 to OEL8 with leapp.
    – doneal24
    Oct 19 at 15:10
  • 1
    there is some howto to upgrade CentOS 7 to 8: howtoforge.com/how-to-upgrade-centos-7-core-to-8, then probably streams will be automatic. Oct 19 at 22:21
5

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.

1
  • Basically, I was looking at a solution similar to, for example, Debian, or NetBSD, where there is an existing procedure to upgrade from one major version to another. I mean we have kinda big live databases, intranets and stuff where just starting CentOS 7 today as our provider suggest would not make a lot of sense - as I would need to consider another big migration in 4 years, with all what it imply. I definitely hear you on this one.
    – marsisalie
    Oct 19 at 20:33
5

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.

4
  • 2
    I suspect the 'bigger' question is having a 'clean' upgrade path from centos7 to the 'equivalent' RHEL8 equivalent Oct 21 at 11:07
  • All our servers are Debian* so it was my favorite/natural option to just make work on Debian* (like your first suggestion) instead of risking unknown with CentOS. But I am open to make a try with CentOS - just that there is going to be a considerable risk of 'reinstall from scratch' from what I see, will explore suggested alternative distros listed in this thread.
    – marsisalie
    Oct 21 at 14:00
  • 1
    Ad "Unfortunately, there is no free clone of SLES." openSUSE Leap is the the equivalent of CentOS to RHEL for SLES. It's not a "clone", but binary compatible, even uses partly the same repositories.
    – sebix
    Oct 22 at 8:30
  • @sebix - I added an edit about SUSE Leap - I decided to keep info that it's not a clone. Still, I'm positively surprised how much effort SUSE put into it. Oct 22 at 9:02
3

Simply as another datum, this issue has been the impetus I needed to decide to end twenty-some years of using RH/CentOS for production deployments (I think I started with Red Hat 4.1). All my new deployments are Debian (unless clients specifically request C7 and indicate their understanding that we'll be back for another rebuild in 24 months) and I'm in the slow process of migrating all my existing deployments. Whatever else Debian does, it's very unlikely to make my life difficult the way RH recently has, and any other corporately-driven project could equally do at the drop of a CEO's hat.

All my C6 systems had to be rebuilt in order to get to C7, so the idea of one last rebuild in order to get off that cycle, to a distro that regards in-place major version upgrades as a normal activity, seems worthwhile.

I've already discovered some issues, and I've no doubt I'll find more, but I'm six months down that path, and have not yet found a reason to turn around.

2

For CentOS 7, I suggest CloudLinux 7 — I guess they will do the same as they did for CentOS 6?

A replacement for CentOS 8 is Alma Linux.

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.