Skip to content
Français
Sync not enabled: your progress stays in this browser My learning
Select theme
Français

Choose a Linux server distribution

By updated

Improve this page

Installing Linux starts with choosing a distribution. On servers, two families cover most of what you will meet: Debian (and its derivatives such as Ubuntu Server) and Red Hat (RHEL, Rocky Linux, AlmaLinux). This lesson explains their concrete differences, helps you choose the one that matches your goal, then points you to the tutorials that present each release and install it step by step. The reference release of this course is Ubuntu Server 26.04 LTS; both families are still explained side by side.

What you will learn

  • Tell apart the Debian and Red Hat families and understand what separates them
  • Identify the package manager that goes with each family
  • Choose the distribution that fits your context (learning, production, certification)
  • Understand support cycles and measure what the free security support of each distribution really covers
  • Spot what each release (Debian 13, Ubuntu Server 26.04, AlmaLinux 10) changes for a server
  • Pick the installation guide and the reading order of the tutorials

What is a Linux distribution?

A distribution (or "distro") is a complete system built around the Linux kernel. It bundles:

  • the Linux kernel,
  • a package manager to install and update software,
  • system tools (shell, utilities, init),
  • a default configuration suited to a specific use.

Two people installing two different distributions get the same Linux kernel, in versions and with settings that vary: Debian 13 and AlmaLinux 10 ship a 6.12 kernel, Ubuntu 26.04 a 7.0 kernel. The tools, the administration commands and the file locations also differ slightly.

What are the two server families?

In server administration you will mostly meet two families. These are their concrete differences. In the table, an LTS (Long Term Support) is a release maintained for several years, and Ubuntu Pro is the Canonical subscription that extends the security updates of an LTS, presented below:

CriterionDebian familyRed Hat family
DistributionsDebian, Ubuntu ServerRHEL, Rocky Linux, AlmaLinux
Package managerapt (.deb packages)dnf (.rpm packages)
Support cycleDebian: ~5 years, Ubuntu LTS: 5 years, up to 10 with Ubuntu Pro (15 with the paid Legacy option)RHEL: 10 years
Network configurationNetplan (Ubuntu) or /etc/network/interfaces (Debian)NetworkManager
Main targetWeb servers, cloud, containers, homelabEnterprise, RHCSA certification, critical systems
CostFreeRHEL by subscription, with a free developer subscription limited in number of systems; Rocky and Alma free
Initsystemdsystemd

The Debian family

Debian is the reference community distribution. Its packages are tested for a long time before they enter a stable release, which earns it its reputation for stability. It is a good choice for learning, because documentation about it is plentiful.

Ubuntu Server is derived from Debian, and it is the reference distribution of this course. Canonical, the company behind Ubuntu, publishes an LTS release every two years, maintained for 5 years. It also publishes official images with the major public cloud providers (AWS, Azure, Google Cloud, IBM Cloud, Oracle Cloud), which makes Ubuntu Server very present in the cloud.

Ubuntu Pro extends this support. This subscription, free for personal use on five machines, adds ESM (Expanded Security Maintenance, extended security fixes) for up to 10 years. Reaching 15 years also requires the paid Legacy option.

The Red Hat family

Red Hat Enterprise Linux (RHEL) is the enterprise reference. It is paid (as a subscription with support), but its stability and its certifications (RHCSA, RHCE) make it an industry standard.

Rocky Linux and AlmaLinux are two free rebuilds of RHEL, and they have not been aiming at the same thing since July 2023. Rocky still presents itself as bug-for-bug compatible with RHEL. AlmaLinux changed its goal to target binary compatibility: applications built for RHEL run on it, but the distribution allows itself to fix a bug before Red Hat does. For learning, the difference does not show; in production, it decides what you can expect from a fix.

Other distributions exist, Arch, openSUSE or Alpine, but they remain rare on production servers. Learning Debian and RHEL is enough to find your way around most server fleets, because these two families cover the two package managers and the two schools of network configuration: what you learn on one carries over to the other, and the rest attaches to them.

What changes day to day: the package manager

The most visible difference between the two families is the command that installs software:

Debian family (apt)
sudo apt update
sudo apt install nginx
Red Hat family (dnf)
sudo dnf install nginx

Both do the same thing: install the Nginx web server from an official repository, that is, a server that hosts the packages of the distribution. Only the command and the package format differ. That is why this site always gives the commands for both families.

Which distribution should you choose?

Your goalRecommended distributionWhy
Learn LinuxUbuntu Server 26.04 LTS (reference of the course) or DebianLarge community, plenty of documentation, easy to install
Prepare the RHCSARocky Linux or AlmaLinuxRHEL-compatible, and the exam is taken on RHEL
Run a web / cloud serverUbuntu Server LTS or DebianVery present in the cloud (AWS, GCP, Azure), official images with the major providers
Enterprise environmentRHELCommercial support, certifications, compliance
Homelab / self-hostingDebianLightweight, stable, no commercial cycle

When you still hesitate, the tutorial Debian, Ubuntu or AlmaLinux: who really covers your packages acts as referee. It starts from your situation: Debian 13 for a self-hosted stack (Docker, Redis, fail2ban, certbot), AlmaLinux 10 for a long-lived fleet with no subscription budget, Ubuntu Server 26.04 LTS for the public cloud with official images. It also measures, package by package, what the free support really covers; the section "Which release should you install, and for how long is it supported?" summarises the essentials.

Which release should you install, and for how long is it supported?

Do not pick a release at random. Always prefer a release with long-term support:

DistributionRecommended release (2026)ReleasedEnd of support
Debian13 (Trixie)August 2025August 2028, then LTS until June 2030
Ubuntu Server26.04 LTS (Resolute Raccoon)April 2026May 2031, then ESM (Ubuntu Pro)
RHEL10May 2025May 2030, then maintenance until May 2035
Rocky Linux10June 2025May 2035
AlmaLinux10May 2025May 2035

The word LTS does not mean the same thing everywhere: at Ubuntu, it is the release itself; at Debian, it is the extension phase that a dedicated team provides after standard support.

The end of full support is not the end of life. Debian 13 leaves standard support in August 2028, but still receives security fixes as LTS until June 2030. Likewise, RHEL 10 enters its maintenance phase in 2030 and only really reaches end of life in 2035, with fixes limited to critical vulnerabilities.

The previous releases remain supported, but not all in the same way. RHEL 9 and Rocky 9 still receive their fixes, whereas Debian 12 moved to LTS in the summer of 2026, supported by the LTS team until 30 June 2028. On an existing fleet, there is no emergency, but the migration must be planned before that deadline.

The rule is not to start a new server on a release that is already in LTS or close to the end of its standard support, so Debian 12 is no longer a choice for a new installation.

Between two LTS releases, Ubuntu also publishes interim releases, which only get 9 months of support. That is enough for a test bench or a disposable server that you rebuild anyway, never for a long-lived production system, because you must have migrated by the deadline. Pick an LTS for anything that has to last.

Does free security support cover your packages?

The table gives years of support, but not what those years cover. The scope differs even between two distributions of the same family. On Debian as on Ubuntu, the repository is split into sections, and the main section is the one the vendor commits to maintain. The Debian security team covers main, and the usual server packages (docker.io, redis, fail2ban, certbot, nginx) are all in it, even though the Debian 13 release notes limit security tracking for packages written in Go, such as docker.io.

On Ubuntu, Canonical's free commitment also covers main, which is about 2,300 packages according to Canonical's Expanded Security Maintenance page. But four of these five packages live in universe, the section of community-maintained packages: only nginx is in main.

For universe, no security fix is guaranteed from the day you install. The community sometimes publishes some, on a "best effort" basis, but with no commitment at all. The only guaranteed coverage, esm-apps, requires Ubuntu Pro from day one, not after five years.

The comparison tutorial measures this scope package by package, on Debian 13, Ubuntu Server 26.04 LTS and AlmaLinux 10. AlmaLinux covers the whole scope of the distribution, but excludes EPEL, the repository of additional packages of the Red Hat family, where fail2ban and certbot come from. On AlmaLinux, redis no longer exists (it is replaced by valkey) and Docker is outside the distribution.

What changes with each release on a server?

A release is judged by what can break your habits or your scripts, not by its number. Each of the three reference distributions therefore has a discovery tutorial, based on measurements made in a virtual machine. The paragraphs below give the essentials; the tutorial gives the outputs and the procedure.

Ubuntu Server 26.04 LTS, the reference release of the course, came out on 23 April 2026. It replaces sudo with sudo-rs, a rewrite in Rust, and also rewrites in Rust the basic commands such as ls or cp (the coreutils). It finally removes apt-key, the old command that added the keys of third-party repositories. Its tutorial also covers the support cycle and the coverage gap of universe.

Debian 13 "Trixie" (in French) has been published since 9 August 2025. It mounts /tmp in memory (tmpfs), which empties it at every reboot, no longer reads /etc/sysctl.conf at boot, the historical file for kernel settings, and removes the last, lastb and lastlog commands. The tutorial also details the migration from Debian 12, which can cut off SSH or the network if it is not prepared.

AlmaLinux 10 (in French) brings ten years of free security fixes, without free extended update support (EUS): a minor release stops being fixed when the next one comes out. The tutorial also examines the boundary between AppStream, the repository of the distribution's packages, and EPEL.

One trap concerns the processor. The RHEL 10 family requires an x86-64-v3 processor, an instruction-set level, that of Intel Haswell processors from 2013 onwards. A virtual machine that exposes a generic processor does not boot. Only AlmaLinux also publishes an x86-64-v2 variant for older processors.

What about the labs of the course?

The labs of the Linux course still run on Ubuntu 24.04 and AlmaLinux 10.2, whereas the reference release is Ubuntu 26.04 LTS. If you replay an exercise on a fresh 26.04, three frequent differences may appear compared with the lessons:

  • the sudo-rs prompt no longer displays [sudo] password for;
  • /tmp is emptied at every reboot, because it lives in memory;
  • ls --color=always emits ANSI colour codes even when LS_COLORS is empty, as in a script run by cron.

The Ubuntu tutorial details these three points and cites others, such as the removal of apt-key and of cgroup v1: if a result differs from the lesson, start there.

How do you install the chosen server?

Once the distribution is chosen, it remains to put it into service. Each family has its installer, and a tutorial walks through each one with screenshots: download the ISO (the image file of the installation disk), start the installer, partition the disk, create the administrator account, then check the first login.

  • Install Ubuntu Server 26.04 uses Subiquity, the Ubuntu Server installer, which offers partitioning into logical volumes (LVM) by default.
  • Install Debian 13 goes through the Debian installer and insists on the choice of software: an SSH server, not a desktop.
  • Install AlmaLinux 10 (in French) goes through Anaconda, the installer of the Red Hat family, with LVM and the XFS file system, the default format of that family.

To try without risk, the lesson Install Linux in a virtual machine shows how to prepare a virtual machine. The steps common to all distributions (bootable USB key, partitioning, automated installation with Kickstart or cloud-init) are in Install a Linux server: this lesson does not repeat them.

In what order should you read the tutorials?

If you have not chosen yet, read the comparison first, which settles the question in a few lines. Then read the "what changes" page of the chosen distribution to learn its pitfalls, then its installation guide. If your company imposes the distribution, go straight to these two pages.

If you have never set up a server, you can also install first and come back to the "what changes" pages when you have to maintain the machine. The installation guides state their prerequisites at the top, and the "what changes" pages can be read without having installed the distribution.

Put it into practice

Recognising a distribution family at first glance takes a little practice. The lab sets up a separate working folder on your workstation, with a choix-distro.txt file to fill in. The commands run on your own machine: you read /etc/os-release, the file that describes the installed distribution, to find your system's family, you look for the package manager that is present with which, then you write the command that installs a package with it. The check compares these three values with what your machine actually exposes: an answer that does not match your system fails. Choosing a distribution for a given context stays the subject of the lesson and the quiz, not of the lab.

Key points

  • On servers, two families cover most cases: Debian (apt, .deb) and Red Hat (dnf, .rpm).
  • Ubuntu Server 26.04 LTS, the reference of the course, and Debian are the simplest choices to learn.
  • Rocky Linux or AlmaLinux rebuild RHEL for free, useful to prepare the RHCSA.
  • Linux concepts are the same everywhere; only a few administration commands differ.
  • Always choose an LTS or long-term support release.
  • The reference release of the course is Ubuntu Server 26.04 LTS; the labs still run on Ubuntu 24.04 and AlmaLinux 10.2.
  • The comparison tutorial separates the distributions on the real scope of their fixes, and each release has a "what changes" tutorial followed by an installation tutorial.
  • Free security support does not cover the same scope depending on the distribution: on Debian, the usual server packages are in main, so covered (with limited tracking for packages written in Go); on Ubuntu, docker.io, redis, fail2ban and certbot are in universe, with no commitment, nginx being the exception.

Knowledge check

Check that the essentials of this guide stuck. The questions cover only what has just been explained here.

Knowledge check

Check what you have learned with this interactive quiz

6 questions
6 min
70% to pass

How it works

  • The timer starts when you click Start
  • Multiple choice, true/false and short answer questions
  • You can move between questions
  • Detailed results are shown at the end

Starts the quiz and the timer