Summary
- Two lineages: Debian → Ubuntu → Mint and Fedora → CentOS Stream → RHEL → Rocky/Alma. Same kernel, different conventions.
- CentOS moved upstream in 2020, becoming a preview of RHEL rather than a copy. Rocky and AlmaLinux now do what CentOS used to.
- Identical everywhere: kernel, shell, permissions, systemd, FHS, core utilities, filesystems, networking, applications.
- Differs:
.deb/aptagainst.rpm/dnf; AppArmor against SELinux;ufwagainstfirewalld; ext4 against XFS;sudogroup againstwheel. - Debian-family packages start and enable services on install; RPM-family packages do not. Use
systemctl enable --now. - Rocky runs firewalld active by default, Ubuntu does not. A listening service that cannot be reached is usually the firewall - prove it with
ss -tulpn. - Translation:
dpkg -S→rpm -qf·dpkg -L→rpm -ql·dpkg -l→rpm -qa·apt-file search→dnf provides. Readqas a query mode. /etc/os-releaseis present on every modern Linux and is machine-readable.ID_LIKEnames the family, which is what scripts should branch on.- Support windows: Ubuntu LTS 5 years, RHEL family 10 years, Fedora ~13 months. Long support means old software versions, which is what module streams exist to address.
- Architectures: x86_64 dominant, AArch64 growing fast and often cheaper, RISC-V emerging. Check with
uname -m. - Licensing: kernel is GPLv2, which is why source must be published - and why Rocky can exist. Open source is not the same as free of charge.
- Display stack: X11/Wayland display server, display manager for login, window manager for windows. A server should have none -
systemctl get-defaultreturnsmulti-user.target. - Service names differ:
sshdon RPM,sshon Debian.