Choosing a distribution and understanding use cases
On this page
Three people ask you for advice in the same week, because they know you are learning Linux.
- A colleague needs a server for the team’s internal website. It should run for years, and nobody wants to rebuild it often.
- A relative has an old laptop and wants to use it for web browsing and homework.
- A friend wants to start in cyber security and has read that “everyone in security uses Kali”.
Lesson B01.3 showed that every distribution contains the Linux kernel and a set of user-space programs. So why not give all three the same answer? By the end of this lesson, you can compare distributions by what they are built for, how they deliver software, and how long they are supported, and give each person an answer with a reason.
Before you start
Section titled “Before you start”- Kernel, user space, and distributions (B01.3), especially distribution, package, package manager, and support.
- No computer is needed for this lesson.
Three questions to ask about any distribution
Section titled “Three questions to ask about any distribution”There are hundreds of distributions, and you do not need to know them all. Three questions work for any of them:
- Purpose. What is it built for: servers, desktops, or one specialist job?
- Packages. In which format does it deliver software, and which package manager installs it?
- Support. Who maintains it, how often does a release come out, and how long does each release receive fixes?
A release is one version of a distribution, such as Ubuntu 24.04 LTS.
Families: who builds on whom
Section titled “Families: who builds on whom”Many distributions are built from another one: they take its packages, change some, add their own, and make their own decisions about defaults and support. Distributions related in this way form a family. Two families cover most of what you meet on servers and desktops.
The Debian family. Debian is a distribution made by a community of volunteers. Ubuntu is built on Debian by Canonical, a company; its documentation calls Debian “the rock on which Ubuntu is built”. Kali Linux, which comes up again below, is also built on Debian.
The Red Hat family. Red Hat Enterprise Linux, or RHEL, is a commercial distribution made by the company Red Hat. It is developed through two community projects: work appears first in Fedora, a community distribution, then in CentOS Stream, a “midstream between Fedora Linux and RHEL”, then in RHEL. AlmaLinux and Rocky Linux are community distributions built to be compatible with RHEL: programs that run on RHEL are meant to run on them unchanged.
Packages: deb and APT, RPM and DNF
Section titled “Packages: deb and APT, RPM and DNF”The two families use different package formats and package managers:
- The Debian family uses deb packages, files whose names end in
.deb, and the package manager APT. - The Red Hat family uses RPM packages, files whose names end in
.rpm, and the package manager DNF.
The names are enough for now. What matters is the consequence: instructions for one family often do not work on the other, because the package manager, and often the package names, are different. When you follow a guide, check which distribution it was written for. Module B12 teaches APT and shows the DNF counterparts.
Support: release models and long-term support
Section titled “Support: release models and long-term support”A distribution follows a release model, its plan for when releases come out. Two kinds are common:
- Fixed releases. Within one numbered release, software mostly stays at the same versions and receives fixes, especially security fixes. Larger changes wait for the next release, which you move to with an upgrade.
- Rolling release. There are no separate releases. Packages are updated continuously, and an installed system moves with them.
Support is the period during which the people behind a release publish fixes for it. When it ends, the release still runs, but flaws found after that date are no longer fixed.
Here is how these distributions answer the questions, according to their own documentation:
| Distribution and maker | Packages | Release model and support |
|---|---|---|
| Debian, by a volunteer community | deb, APT | A stable release every two years or so; the security team supports it for three years, and the Debian LTS project extends that |
| Ubuntu, by Canonical, a company, with a community | deb, APT | A release every six months, with nine months of support; every two years, an LTS release with five years of standard security maintenance, which the optional Ubuntu Pro subscription extends |
| Fedora, by a community project | RPM, DNF | A release about every six months, each maintained for about 13 months |
| RHEL, by Red Hat, a company | RPM, DNF | Ten years of support per major release, with updates for active subscribers |
| AlmaLinux and Rocky Linux, by community projects | RPM, DNF | Follow RHEL’s major releases, with ten years of fixes for each, at no cost |
| Kali Linux, by OffSec, a company | deb, APT | Rolling: the default branch, kali-rolling, is updated continuously |
The end-of-support date of each release is on the lifecycle pages in Further reading. Look it up when you choose.
Notice two differences. The first is community versus commercial. The community distributions, and Kali Linux, cost nothing. Red Hat sells RHEL as a subscription that includes updates and support. Canonical gives Ubuntu and its standard updates away and sells extended support. The software in all of them is mostly free software (lesson B01.2); the difference is who does the maintenance work, and on what terms.
The second is change versus stability. Fedora and Kali change quickly: software arrives soon after its developers release it, and you update often. Debian stable, Ubuntu LTS, and the RHEL family change slowly: a system works the same way for years. Neither is better; they suit different jobs.
Specialist distributions
Section titled “Specialist distributions”Some distributions are built for one job. Kali Linux’s documentation says it is “specifically geared to meet the requirements of professional penetration testing and security auditing”. Penetration testing means attacking systems, with the owner’s permission, to find weaknesses before someone else does. Kali comes with several hundred tools for that work.
The same documentation says Kali is “NOT a recommended distribution if you’re unfamiliar with Linux”, nor for someone looking for “a general-purpose Linux desktop distribution”. Kali does not give you an understanding of the systems you test; it assumes you have one.
Matching distributions to use cases
Section titled “Matching distributions to use cases”For each use case, decide first what matters most, then which distributions provide it:
| Use case | What matters most | Good matches |
|---|---|---|
| Server | Runs for years with few changes; security fixes for its whole life | Debian stable, Ubuntu LTS, RHEL, AlmaLinux, Rocky Linux |
| Desktop | Works with your hardware; the applications you need; easy updates | Ubuntu Desktop, Fedora, Debian |
| Learning | Matches your course or book, so what you see is what it shows; stays supported while you learn | The distribution your course uses: here, Ubuntu 24.04 LTS |
| Security workstation | Ready-made tools for authorized testing, kept apart from your daily system | Kali Linux in a virtual machine, after you know the basics |
Each row has more than one good match: a use case narrows the choice, but it rarely leaves only one answer.
Now give your colleague an answer. Guess first: which distributions from the table would you suggest for the team’s server, and which would you advise against?
Check your guess
Suggest a fixed release with long support: Debian stable, Ubuntu LTS, or a member of the RHEL family. Any of them can run the website for years, receiving security fixes without changing how it works. If the team’s other servers run RHEL, staying in that family means one set of skills.
Advise against Fedora and Ubuntu’s six-month releases, which leave support within about a year, and against Kali, which changes continuously and is built for testing systems, not for running a service.
Now your friend who wants to start in cyber security. Guess first: should they install Kali Linux?
Check your guess
Not as a first step. Kali’s own documentation advises against it for someone unfamiliar with Linux. Your friend first needs the skills this course teaches, such as files, permissions, processes, and networks, and a general-purpose distribution such as Ubuntu LTS teaches them on a supported system.
Later, Kali in a virtual machine is one reasonable tool for practice in a lab they own or have permission to test. Security work does not require it.
The relative’s laptop is a desktop use case: Ubuntu Desktop, Fedora, or Debian could all work, depending on the hardware and on how often the relative wants to upgrade.
Why this course uses Ubuntu 24.04 LTS
Section titled “Why this course uses Ubuntu 24.04 LTS”The course needs one distribution, so that your screen matches what the lessons show. This reference system is Ubuntu 24.04 LTS, for three reasons:
- Purpose. Ubuntu is general-purpose, with a Desktop edition for learning and a Server edition for later server topics.
- Packages. It belongs to the Debian family, so what you learn applies to Debian, and to Kali if you use it later.
- Support. An LTS release receives five years of standard security maintenance, and its software stays at the same versions while you work through the course.
Ubuntu publishes an LTS release every two years, so Ubuntu’s download page may offer an LTS release with a higher number than 24.04. This course stays on Ubuntu 24.04 LTS, because every lesson was tested on it, and it receives standard security maintenance until May 2029. Module B02 shows where to download it.
The Intermediate level adds a lab with a RHEL-family distribution, for DNF, RPM, and the differences between the families.
You will run Ubuntu in a virtual machine, or VM: a simulated computer that runs as a program on your own computer, with its own kernel and storage. A full VM keeps your lab separate from your daily system, so a mistake in the lab does not touch your own files, and you can save its state and return to it. Module B02 explains why the course chooses a full VM over the alternatives, and builds that lab with you.
Security Angle
Section titled “Security Angle”A support period decides whether a known flaw gets fixed on your system. Suppose the team’s server runs a release whose support has ended. A flaw in its web server program is published, and releases still in support receive fixed packages. The team’s release receives none. Attackers can read the published flaw too, and the server stays open to it.
So, for a server, check the end of support before you install, and plan the upgrade to the following release before that date.
Try it yourself
Section titled “Try it yourself”Goal: Match three situations to a distribution, and give a reason from purpose, packages, or support.
- A small company wants a server for its accounting program. The program’s maker supports it only on RHEL.
- A student wants a desktop whose programming tools are updated often. The student is happy to install updates often and to upgrade every year.
- A tutorial gives you the command
sudo dnf install nginx. You use Ubuntu. Will the command work as written?
Expected: A distribution or a yes or no for each situation, and one sentence of reasoning.
Hint
For 1, look at the family table for distributions related to RHEL. For 2, ask which distribution trades frequent updates for software that arrives soon after its release. For 3, check which package manager each family uses.
Solution
- RHEL. AlmaLinux or Rocky Linux are built to run RHEL programs unchanged, but the maker supports only RHEL, and the company may need that support. The ten-year support also suits a server.
- Fedora. A release comes about every six months, so the tools are updated often. Each release is maintained for about 13 months, which fits a student who upgrades every year.
- No.
dnfis the Red Hat family’s package manager, and Ubuntu uses APT. Look for instructions written for Ubuntu.
- Compare distributions with three questions: purpose, packages, and support.
- The Debian family (Debian, Ubuntu, Kali Linux) uses deb packages and APT. The Red Hat family (Fedora, CentOS Stream, RHEL, AlmaLinux, Rocky Linux) uses RPM packages and DNF.
- Fixed releases keep software stable within a release and receive fixes for a stated period; an LTS release is supported for years. A rolling release updates continuously.
- Match a distribution to its use: long-supported releases for servers, a general-purpose distribution for learning, and specialist distributions such as Kali Linux only for the job they are built for.
- This course uses Ubuntu 24.04 LTS in a full virtual machine, which module B02 builds.
Next, Practice: Understanding Linux puts everything from B01.1 to B01.4 to work in one task.
Further reading
Section titled “Further reading”- Debian: About Debian; Debian Releases, on stable, testing, and unstable; the Debian security FAQ, with how long security updates are provided; and Debian LTS.
- Ubuntu: Ubuntu release cycle, on LTS and interim releases, standard security maintenance, and Ubuntu Pro; and Debian, on how Ubuntu builds on Debian.
- Red Hat: Red Hat Enterprise Linux Life Cycle, and CentOS Stream, on its place between Fedora and RHEL.
- Fedora: Fedora Linux Releases and Fedora Release Life Cycle.
- AlmaLinux: Frequently asked questions, including compatibility with RHEL and the support period. Rocky Linux: Rocky Releases, with the support period of each release.
- Kali Linux: What is Kali Linux?, Should I Use Kali Linux?, and Kali Branches, on the rolling release.