What distribution is most used in production environment

https://lemmy.stonansh.org/post/9069

What distribution is most used in production environment - STONANSH

I’ve come across Red Hat allot lately and am wondering if I need to get studying. I’m an avid Ubuntu server user but don’t want to get stuck only knowing one distro. What is the way to go if i want to know as much as I can for use in real world situations.

So what are the biggest differences. Or is it mostly the same? Also thanks for the responses!

Most Linux distros are more alike than different. They’ll use different package managers, have different sets of software available, have different default settings for some stuff, but at the end of the day, Linux is Linux. Once you know enough, the distro is almost meaningless in terms of what you’re capable of. You can do almost anything on any distro with the right knowledge and a bit of effort. It mostly becomes about the effort at that point.

Skills you learn on one will be 98% transferrable to another. That’s why everybody says to just get Red Hat certifications; not because Red Hat has a monopoly, but because their certification process is fantastic, respected and accepted almost anywhere regardless of what they actually run. As you’ve seen, almost every answer you got was completely different on what they actually run in production.

The only standout differences are the newish trend of immutable distros (openSUSE ALP/Aeon, Fedora Kinoite/Silver blue, etc) and NixOS, which is also immutable but its own beast entirely. These have some new considerations separate from the rest, especially NixOS. But they’re still relatively fresh on the scene, so there’s no rush to learn about them just yet.

I’d suggest RedHat and SUSE as well.

RedHat, CentOS, Debian, Ubuntu.

All are good choices.

I once worked in for a small publishing company years ago, circa 2005, where they used CentOS on the desktop and server environments. Deploying a new desktop was as simple as using kickstart. They had their infrastructure down to a science.
I hope I can get my company to go linux. But for now I can only use it for myself. But i’m quietly pushing :)
Good luck, users at my company would flip out if the desktop wallpaper was unfamiliar.

The default Linux image on AWS (Amazon Linux) is RPM-based; but the default image on Google Cloud currently appears to be Debian “bullseye” (the April 2023 release) with an option for “bookworm” (brand new this month). I’m not sure about Microsoft Azure but their docs suggest a Debian default as well.

So that’s one impression. Knowing both dpkg/apt and rpm will serve you well.

Major tech companies have their own internal distributions in their production datacenters, which focus much more on their specific needs. Any major tech company using Linux in datacenters will have an engineering team specifically building what they need.

That’s interesting to know thanks! I do know some dpkg and apt but nothing about rpm so will learn more about that.

Agreed; I was going to comment something similar: I work with SAP (SAP’s HANA database runs on SUSE). When I need a free swrver OS for anything else, I go debian (I used RH from 4.2 to 8.0 when they fooled us once, then went debian).

So being comfortable with a rpm based and a deb based system is good advice.

On the server side, when most administration is through ssh, distro differences are not as relevant as for GUI environments. Package handling is the most impacting difference (and I prefer deb), not that it’s a showstopper, when you have yast and aptitude though.

It really depends. I work for a large company and we use Ubuntu, Oracle, RedHat, and SLES. We were moving from Oracle to Ubuntu but now we are going back to RedHat.

Currently we deploy like this: Ubuntu: PostgreSQL, web servers, some engineering workstations, and big data Oracle & RedHat: web servers, security applications, and network systems

So just having a fundamental understanding of Linux and you will be fine SUSE: SAP and HR software

What’s the reason if I may ask why they are moving to Red Hat instead?
Mostly cost. We used to run a lot of Oracle databases and they have become extremely expensive to keep running. So we are migrating to PostgreSQL. The servers were getting migrated to CentOS but now that RedHat fucked that distro we are going back to RedHat. Part of that deal is switching from chef to Ansible. So to save costs we are consolidating to a single vendor.
Oracle DB are sucking a lot of money, but they fork RHEL for free… what a free estate… haha… Nice work ORACLE… :/
I think Ubuntu is the most popular distro in the cloud, at least based on cloud provider metrics. Dockerhub shows like 30 million downloads a week for it regularly, which is a lot compared to most images. Debian would be good to learn as that’s what Ubuntu is based on and all the major software with will probably target it. Alpine is good to learn as it’s super slim, tends to be used for containers a lot.
I don't use Linux at work (I wish I did), but I default to Ubuntu Server for at-home Docker needs. I might switch to plain Debian at some point.
I recently finished reading a good docker book. They explained why alpine is so great to use: its like 16 MBs or something. I deployed a Minecraft server with it just for fun. Pretty cool. Shrunk the image a good 15 percent from a debian version I believe. Check it out if you want. Have a good one.

Thanks, I'll check it out! I honestly run into disk space issues with Ubuntu Server a lot. I'll give it a partition and it will fill up with this opaque "ubuntu--vg-ubuntu--lv" volume pretty quickly.

Here's a df -h on it right now:

/dev/mapper/ubuntu--vg-ubuntu--lv 38G 17G 20G 47% /

This sounds like an automation opportunity. If docker starts to fill up, I assume you pull or build a lot of images. If the reason is rooted in software development, you might wanna look at ci/cd. If not, I suggest going through your process and maybe changing the routine. Like run with a -rm command. Thats what I do when I test stuff. The container gets removed immediately after stopping. There are many neat tricks. Hit me up if you need more info.
You’re absolutly right, but this is about host os, not container os
For learning system administration, I think Cent OS Stream can be a great choice. Not because it offers something special than others but because it would familiarize you with the RHEL/Fedora family and in my experience majority of enterprise-servers are using one of its family members, be it RHEL, the former CentOS, Oracle Linux, Amazon Linux or some other variant.
The two distros I’ve seen in the workplace most often were Redhat (because support contracts can be purchased) and Ubuntu (because AWS and Digital Ocean treat Ubuntu VMs as first-class citizens).
Mostly cost. We used to run a lot of Oracle databases and they have become extremely expensive to keep running. So we are migrating to PostgreSQL. The servers were getting migrated to CentOS but now that RedHat fucked that distro we are going back to RedHat. Part of that deal is switching from chef to Ansible. So to save costs we are consolidating to a single vendor.
anyone using nixOS?

For production server? No. mostly NixOS is for desktop.

Ansible cover what nixOS doesn’t in Debian/RHEL space, and it’s idempotent and better than nixOS config. Unless they change their approach for server, I don’t see any way in near future it will be massively adopted.

Not Linux but there are still a of Unix System V systems out there too. AIX, Solaris and HP-UX. Harder to learn as very much not open source software (although there is the Illumos project with distros like OpenIndiana).
Wow, last time I managed HP-UX, SunOS/Solaris, AIX, and Irix, was last century…
Unfortunately AIX in particular is very still in use in my industry. Its slowly being phased out but is very much still there.
In banking I suppose? Or airline? Having hard time seeing AS400 in Banking… at least some are using IBM Z nowdays…
Healthcare. People keep systems for decades.
I see. I seen some still using palmOS. Is there still any palmOS in production?

AIX

Impressive :) starting in the 2000s I was maintaining a park of SCO serves (yes, the infamous SCO) but starting 2010ish it was all Linux…

Almost always use Ubuntu in production. Also a bit of Centos at one point.
C’est vrai, same for me
If you want to learn more than one distro, try setting up Docker containers for various services. The base distros in the containers use the same commands as on the base metal

Nobody said Alpine? Youre debugging k8s containers your gonna find Alpine, Ubuntu/Debian and CentOS.

Once you know package managers and basic images you’re gonna be able to get what you need.

I’m seeing a lot of very interesting answers but I’m wondering what you mean by “production environment”.

Do you mean VFX Production? (English not my first language so if “production” is used in different industries, well, I didn’t know).

I’m new to the industry and worked for small companies that don’t use Linux. But my VFX peeps use Rocky, Mint, and Ubuntu ( stronger preference for Rocky in studios).

In IT in the US, “production” is commonly used to refer to systems that support actual business operations. In other words, it’s as opposed to “development” or “testing” systems.
Thanks! So I gather the default is IT and not VFX, fair enough. It makes sense.
You’re welcome! Yes, I believe so.
In this context production means servers or machines which make money in a business. The partner term is normally staging: a testbed environment.
100% sure its Debian.

Mission critical server mostly are RHEL or EL Clone or Fedora or it’s derivative… If you combine even Azure nowdays, Microsoft Linux is derived from Fedora, same as Amazon Linux, and others… Debian are covering some part, but mostly hobbyist, or SME, and mostly non critical, as they don’t have standard across, even on their wiki.debian.org/LTS/Extended and www.debian.org/consultants/

apt also bad when you got to dowgrade package when something mess up, and get messy with dpkg… :'(

So I quite doubt if it’s production env, mostly go with EL. I do know some company use Ubuntu/Debian, but it’s quite few…

If Ubuntu/Debian want to shape Industries, and kick out RHEL, they need to have standard, and better consultancy than RHEL. I hope so that they could grow and make market competitive, but for now it isn’t sadly.

LTS/Extended - Debian Wiki

Debian needs to focus more on automation if they want more penetration in the enterprise. Debian feels made for human admins logging in and managing things old school style which is fine for a few machines. Modern enterprises use Ansible etc and need highly functional non-interactive ways to install and configure etc. Preseed and Apt leave something to be desired here.
What has automation to do with a distro? You can automate any distro. Ansible runs on any linux.

A distro can make automation more difficult than it needs to be. As I mentioned in my examples, Preseed sucks, have you ever used it? And of course Ansible works on pretty much any distro, but Debian family distros are made with the expectation of user input, such as expecting configuration values during package installation and this has to be worked around. It’s not impossible, just more work and testing. When you’re automating CentOS and Ubuntu next to each other, you’ll realize extra Ubuntu related code.

Not a big deal, it’s just minor preferences.

but Debian family distros are made with the expectation of user input, such as expecting configuration values during package installation

Any examples? I never installed such a package.

It’s been a long time, if I remember correctly one of them is Postfix. Again going from memory that’s at least five years old, when installed in say Ubuntu, you get asked questions, like what you want your mailserver hostname to be, whether you want to configure a relay, etc. This is fine if you know the answers at install time and you’re around to answer the question, otherwise your automation will hang indefinitely if this is not worked around.

Now also IIRC, there are ways to work around this, such as by providing the answers in your automation for the package install step (but then you’re mixing partial postfix config with the package install and the remainder of the config is separate, feels weird) , in some cases it’ might be simply an apt option, but like I said, it takes extra code in your automation which is not necessary on RHEL based distros. Installing a package in Ansible can be 3 short lines of code, for Deb based it’s like 10 lines.

Doing this for one package isn’t such a big deal, but when you find yourself having to work around things and writing extra code for one specific distro/family it becomes clear it wasn’t made for automation and unless you have a personal affinity for it, it’s just a bit easier to use something else.

This is not a diss, it’s not a bad thing for a distro to made for humans, it’s just in that the environments I work in, managing hundreds of machines with Ansible and having a significant code base I prefer to have my code smaller and cleaner.

Depends on context.

If you want to get a job as a “Linux admin” then Red Hat is basically what you want as a “default”. Fedora will give you something you can use at home that’s broadly similar.

Using Fedora at home because you have to use Red Hat at work? NOPE, thanks.
A company I worked at 2016-2022 used mainly CentOS and Ubuntu for all their servers at customers’ sites

At work: Alpine-based docker containers. Flatcar Container Linux for host VMs.

Personally: Ubuntu Server. Some alpine docker containers.

At this point? Probably Cent OS, since that’s what AWS uses. It’s a variation of Ubuntu. So if you don’t count it as separate, then definitely Ubuntu.
@Anticorp @lemmy How do you figure? My understanding is CentOS is based on RHEL, not Ubuntu.
CentOS is an RHEL variant, not Ubuntu.
I always use Ubuntu Server. It was my first distro 20 years ago and it’s still where I’m most comfortable.
I work for a well known internet company, and its 98% redhat (or derivative) with some alpine and ubuntu scattered about randomly
To tag onto this, what makes RHEL so special? Is it just the support you get from Red Hat or is there something about the distro that makes it so widely used?

Support contracts for risk mitigation is a big part of it, and the other is RH release engineering is amazing.

Aside from that, RHEL, and clones, is a very straight forward, clean distro. It’s very focused with everything doted and tidy, and overall, it has a very uncomplicated feel to it. In contrast Debian derivatives are kind of messy, and SUSE tries to stuff every function into a single application.

RHEL does push a lot of technology. Out of the stable distros, it will be the first to put tech into production. RH does a lot with integration with other systems. This has kept me off of SUSE in the past. RHEL was more tech forward, comparatively.

dnf downgrade

dnf history undo

dnf history redo

it’s very very very critical for most case :')