Demo mode This site is not live. It is currently being tested and developed. Nothing on here represents an offer.
← Exit course IT-203 CompTIA Linux+ XK0-006 Prep: Linux Server Administration
Course progress, 0 of 14 parts done0%

Two Families, One Linux

Download as PDF

Debian and Red Hat side by side: what is identical, what differs, and why.
Linux+ XK0-0061.0 System ManagementCore coverage

1. Where the families came from Any Linux

Debian, 1993A volunteer project with a social contract and a formal constitution. Priorities: stability, free software, and an enormous archive. Debian → Ubuntu → Linux Mint, plus Raspberry Pi OS, Kali, Proxmox and hundreds more.
Red Hat, 1994A commercial company from the start. Priorities: certified hardware, supported software, long support windows. Fedora → CentOS Stream → RHEL → Rocky and AlmaLinux, plus Oracle Linux and Amazon Linux.
Figure 1.1 - Two lineages, two sets of priorities, one kernel.

The split is historical rather than technical. Both families run the same kernel, the same GNU utilities, the same systemd and the same applications. What differs is packaging, defaults and conventions - the decisions each project made about how to assemble those identical parts.

2. The Red Hat pipeline, and why Rocky exists RPM family

FedoraNew features first, ~6-month releases
›
CentOS StreamRolling preview of the next RHEL
›
RHELCommercial, 10-year support
›
Rocky / AlmaFree rebuilds of RHEL
Figure 1.2 - Features flow left to right, taking years. Rocky and AlmaLinux rebuild RHEL from its published sources.

Until 2020, CentOS was a free rebuild sitting downstream of RHEL - the standard choice for anyone who wanted RHEL without the subscription. Red Hat then repositioned it as CentOS Stream, upstream of RHEL, which made it a preview rather than a copy.

Rocky Linux and AlmaLinux were founded in response, and both do what CentOS used to do: rebuild RHEL from source, bug-for-bug compatible, free. For learning purposes they are interchangeable with RHEL itself, and this course uses Rocky.

Why this history is worth knowing. Job advertisements say "RHEL". Documentation says "CentOS". Your machine says "Rocky". Knowing that these are the same system with different labels - and that CentOS now means something different from what it meant in older tutorials - saves a great deal of confusion, and the exam expects the distinction.

3. What is identical Any Linux

Before the differences, the far longer list of things that do not change. Everything below is the same on Mint, Ubuntu Server, Debian, Rocky, RHEL and Fedora:

The kernelSame source, same system calls, same behaviour
The shellbash, and every construct from intermediate Modules 2, 3 and 11
Permissionsrwx, ownership, umask, ACLs, special bits
systemdUnits, targets, timers, journald - identical
The FHS/etc, /var, /usr, /home mean the same everywhere
Core utilitiesgrep, sed, awk, find, ps, ss, ip, rsync
Filesystemsext4, XFS, LVM, RAID, LUKS, fstab
NetworkingThe stack, addressing, routing, DNS resolution
ApplicationsApache, nginx, Postfix, PostgreSQL, Docker

This is why the intermediate course transfers almost entirely. You are not learning a second operating system; you are learning where one you already know keeps things in a different place.

4. What genuinely differs Any Linux

AreaDebian familyRPM family
Package format.deb.rpm
Low-level tooldpkgrpm
Dependency toolapt, apt-getdnf (formerly yum)
Repository config/etc/apt/sources.list.d//etc/yum.repos.d/*.repo
Mandatory access controlAppArmor (path-based)SELinux (label-based)
Firewall front endufw, or nftables directlyfirewalld
Network configurationnetplan (Ubuntu), NetworkManagerNetworkManager, nmcli
Service defaultsEnabled and started on installInstalled but not started
Web server packageapache2, config in sites-availablehttpd, config in conf.d
Web content root/var/www/html/var/www/html (same, but SELinux-labelled)
Legacy config directory—/etc/sysconfig/
Default filesystemext4XFS
Administrative groupsudowheel
Root loginRoot password disabled by defaultRoot password set during install
The two differences that catch people out first.
  • Installing a service does not start it on the RPM side. On Ubuntu, apt install nginx leaves you with a running web server. On Rocky, dnf install nginx leaves you with an installed one that is doing nothing. You must systemctl enable --now nginx. This is a deliberate policy difference - Red Hat's view is that starting a network service without being asked is a security decision the administrator should make.
  • SELinux will block things AppArmor would not. Serving web content from a non-standard directory, or having a service listen on an unusual port, works on Ubuntu and is refused on Rocky. The service starts, the logs look fine, and the request is denied. Module 11 covers this properly; until then, if something works on deb-srv and mysteriously does not on rpm-srv, SELinux is the first suspect.

5. Translating between them Any Linux

Same task, two dialects Debian family RPM family apt updateapt install pkgdpkg -L pkgdpkg -S /pathapt-file search bin/xufw allow 80/tcp dnf check-updatednf install pkgrpm -ql pkgrpm -qf /pathdnf provides */xfirewall-cmd --add-service=http refresh metadatainstalla package's fileswhich package owns itwhat provides a commandopen a port
Figure 1.3 Everyday tasks in both families. The concepts are identical, and only the command names and a few option letters differ, which is why learning one family makes the other quick to pick up.
TaskDebian familyRPM family
Refresh metadataapt updatednf check-update
Installapt install pkgdnf install pkg
Removeapt remove pkgdnf remove pkg
Upgrade everythingapt upgradednf upgrade
Searchapt search termdnf search term
Package detailsapt show pkgdnf info pkg
List a package's filesdpkg -L pkgrpm -ql pkg
Which package owns a filedpkg -S /pathrpm -qf /path
List installeddpkg -lrpm -qa
Which package provides a commandapt-file search bin/xdnf provides */x
Open a firewall portufw allow 80/tcpfirewall-cmd --add-service=http --permanent
The pattern worth noticing. dnf deliberately mirrors apt's verbs, so the high-level commands read almost identically. The low-level query tools differ more: rpm uses a query mode with combining flags - -q to query, then l for files, f for the owning file, a for all, i for info. Read rpm -qf as "query, by file" and it stops looking arbitrary.

6. Release models Any Linux

DistributionRelease cadenceSupportUse for
Debian Stable~2 years~3 years, +2 LTSServers where conservatism is a feature
Ubuntu LTS2 years (April, even years)5 years, extendable to 10The commonest server and cloud choice
Ubuntu interim6 months9 monthsNot for servers
RHEL / Rocky / Alma~3 years major, ~6 months minor10 yearsEnterprise, long-life systems
Fedora~6 months~13 monthsSeeing what is coming; workstations
Arch, openSUSE TumbleweedRollingContinuousNot typically servers

Long support is the whole product in the enterprise world. A ten-year window means a system installed today receives security patches until 2036 without a version upgrade, and that certified applications will still be supported on it. The trade is old software versions - RHEL 9 ships PHP 8.0 while Fedora ships 8.4 - which is why module streams and third-party repositories exist, and which Module 3 covers.

7. Server architectures Any Linux

ArchitectureAlso calledWhere you meet it
x86_64AMD64, x64The overwhelming majority of servers and VPS instances
AArch64ARM64Cloud instances (AWS Graviton, Ampere), Raspberry Pi, increasingly cheap VPS
RISC-V—Emerging, open instruction set. Awareness only for now
x86i386, 32-bitLegacy. Ubuntu and RHEL no longer ship it
bash
$ uname -m
x86_64
$ arch
x86_64
$ lscpu | head -4
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit

Architecture matters when you download a package by hand, choose a container image, or select a VPS. An ARM instance is often noticeably cheaper for the same performance, and everything in this course runs on it - but a .deb or .rpm built for x86_64 will not install, and container images must be multi-architecture or built for the right one.

8. Software licensing Any Linux

LicenceTypeKey obligation
GPL v2 / v3CopyleftDistribute modifications under the same licence, with source
LGPLWeak copyleftLibraries may be linked by proprietary software
AGPLStrong copyleftAlso triggers on network use, not only distribution
MIT, BSD, Apache 2.0PermissiveAttribution; Apache 2.0 adds a patent grant
ProprietaryClosedWhatever the vendor's terms say

The kernel is GPLv2, which is why every distribution must publish its kernel sources - and why Rocky and AlmaLinux are able to exist at all. Open source is not the same as free of charge: RHEL is open source software sold with a support subscription, and that is entirely consistent with the licence. What you pay for is support, certification and the ten-year commitment, not the code.

9. Display technologies Any Linux

Your servers have none of this, but the exam expects the vocabulary.

ComponentDoesExamples
Display serverManages the screen, input and windowsX11 / Xorg (legacy), Wayland (modern)
Display managerThe graphical login screen; starts the sessionLightDM (Mint), GDM (GNOME), SDDM (KDE)
Window managerDraws borders, handles placement and focusMuffin (Cinnamon), Mutter, KWin, i3
Desktop environmentThe whole assembled experienceCinnamon, GNOME, KDE Plasma, XFCE

X11's design lets an application display on a different machine, which is what ssh -X uses. Wayland replaces it with a simpler, more secure model and is now the default in Fedora, RHEL 9 and Ubuntu. On a server you want none of them: systemctl get-default should return multi-user.target, not graphical.target.