Use it when instructions differ between systems, or to check whether a release is still supported.
Distributions
A distribution packages the kernel, libraries, tools and defaults into a system: Debian/Ubuntu (apt, .deb), RHEL/Rocky/AlmaLinux/Fedora (dnf, .rpm), SUSE (zypper), Arch (pacman). Releases decide versions and support life.
1. cat /etc/os-release — ID and VERSION_ID?
2. Map the guide to this family: apt vs dnf, apache2 vs httpd, ufw vs firewalld, AppArmor vs SELinux.
3. Release still supported? Check the vendor's lifecycle page.
4. Updates working: apt update / dnf check-update.
5. Plan an upgrade if end of life is near.
distribution and release identified → matching commands and paths used → packages from supported repositories → release within support
For Linux Fundamentals → Distributions, continue with the first unproven Topic check: Record distribution ID/release, architecture and support channel before applying distro-specific instructions. If that boundary is healthy, advance to the adjacent check: Identify package manager/repository and init/service conventions used by that distribution. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
distribution family/release → repositories/package policy → installed kernel + user-space versions → init/configuration conventions → effective runtime → workload result
Healthy evidence: distribution/release and architecture are explicit, distro-specific conventions match the host, and actual component versions/runtime state are independently verified where relevant.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Record distribution ID/release, architecture and support channel before applying distro-specific instructions.
- Identify package manager/repository and init/service conventions used by that distribution.
- Verify actual kernel/tool/library versions when behavior depends on them instead of inferring from the distribution label.
- After applying distro-specific guidance, verify the effective service/application result on the target release.
Verification chain. distribution family/release → repositories/package policy → installed kernel + user-space versions → init/configuration conventions → effective runtime → workload result
Step 3 Commands Verify boundary
cat /etc/os-release
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: instructions are copied across distributions without checking conventions, distro release is used as kernel version, or backported fixes are judged only by upstream version strings.
Step 5 Common mistakes Narrow the fault
- Using instructions for another distribution family.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Check the release before following any guide: paths, service names (apache2 vs httpd), firewall tools (ufw vs firewalld) and security frameworks (AppArmor vs SELinux) differ. Use the distribution's packages rather than building from source where possible.
cat /etc/os-release— ID, VERSION_ID and namelsb_release -a— release details (if installed)hostnamectl— OS, kernel and architecture in one view
ReferenceWhat it is1 section · depth on demand
Core model
Pin distribution family, release and architecture first; then identify the package/repository, init/service, filesystem/configuration and security-policy conventions relevant to the task. Verify the running kernel and actual tool versions independently because distributions can backport fixes and support multiple kernels or user-space versions.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Distribution identity selects the correct integration conventions, but it cannot by itself establish a kernel capability, installed package version or runtime state.
In depth
Linux distributions: families and how to tell them apart
A distribution combines the Linux kernel with a C library, an init system, a package manager, default configuration and a release and support policy. Scripts that must work on several distributions need a reliable way to tell which one they're on. The os-release(5) manual page provides it:
IDis a lower-case identifier such asdebian,ubuntu,rhelorfedora.ID_LIKElists related distributions, closest first, so a script can handle a derivative in the same way as its parent.VERSION_IDis the version as a machine-readable string, andVERSION_CODENAMEis the codename where one exists.PRETTY_NAMEis meant for display.
The manual advises against parsing other files for this purpose.
Main families
| Family | Examples | Packages | Package tool |
|---|---|---|---|
| Debian | Debian, Ubuntu, Linux Mint | .deb | apt, dpkg |
| Red Hat | RHEL, Fedora, CentOS Stream, AlmaLinux, Rocky Linux | .rpm | dnf, rpm |
| SUSE | SLES, openSUSE | .rpm | zypper |
| Arch | Arch Linux, Manjaro | .pkg.tar.zst | pacman |
| Alpine | Alpine Linux (musl, BusyBox) | .apk | apk |
Practical differences
| Area | Debian/Ubuntu | RHEL/Fedora |
|---|---|---|
| Web server package and user | apache2, www-data | httpd, apache |
| Admin group for sudo | sudo | wheel |
| Default MAC system | AppArmor | SELinux |
| Firewall front-end | ufw (Ubuntu) | firewalld |
| Network configuration | netplan (Ubuntu), ifupdown (Debian) | NetworkManager |
| initramfs tool | initramfs-tools | dracut |
Release models
| Model | Meaning | Examples |
|---|---|---|
| Fixed release with long support | Stable package versions, security fixes for years | RHEL, Ubuntu LTS, Debian stable |
| Fast fixed release | New version about every six months | Fedora, Ubuntu interim releases |
| Rolling release | Continuous updates, no major versions | Arch, openSUSE Tumbleweed |
host$ cat > /usr/local/bin/pkg-install <<'EOF'
#!/bin/sh
. /etc/os-release
case " $ID $ID_LIKE " in
*" debian "*) exec apt-get install -y "$@" ;;
*" rhel "*|*" fedora "*) exec dnf install -y "$@" ;;
*" suse "*) exec zypper --non-interactive install "$@" ;;
*" alpine "*) exec apk add "$@" ;;
*) echo "unsupported distribution: $ID" >&2; exit 1 ;;
esac
EOF
host$ grep -E "^(ID|ID_LIKE|VERSION_ID)=" /etc/os-release
ID=rocky
ID_LIKE="rhel centos fedora"
VERSION_ID="9.5"
Why the script checks ID_LIKE
It matches on both ID and ID_LIKE, so Rocky Linux, with ID=rocky and ID_LIKE="rhel centos fedora", is handled as RHEL. It doesn't need its own case.
Documented example, not captured output.
How it works at runtime
Distributions is part of Linux Fundamentals → Distributions. Distributions package the Linux kernel with user-space tools, libraries, init/service defaults, repositories, policies and release lifecycles; the distribution defines integration choices but is not itself the kernel.
Topic-specific state model. Distributions package the Linux kernel with user-space tools, libraries, init/service defaults, repositories, policies and release lifecycles; the distribution defines integration choices but is not itself the kernel.
Interpretation rule. - Distribution version ≠ kernel version.
- Same upstream version string ≠ same patch set because distributions backport fixes.
- Command name available on one distribution ≠ package/service/configuration path is identical on another.
- Package installed from a repository ≠ repository policy or support lifecycle is appropriate for the host.
Quick reference
Distribution families:
| Family | Examples | Packages | Default MAC | Release model |
|---|---|---|---|---|
| Red Hat | RHEL, Rocky, AlmaLinux, Fedora, CentOS Stream | RPM / dnf | SELinux | RHEL: 10-year major releases |
| Debian | Debian, Ubuntu, Mint | deb / apt | AppArmor | Debian ~2-year stable; Ubuntu LTS every 2 years |
| SUSE | SLES, openSUSE | RPM / zypper | AppArmor (SELinux in newer SLE 16) | Long-term enterprise |
| Others | Alpine (musl, apk), Arch (pacman, rolling) | — | — | — |
cat /etc/os-release
For servers choose a distribution with long support, predictable security updates and vendor/application support for your stack.
Limits and how it fails
Primary failure point. Distribution identity selects the correct integration conventions, but it cannot by itself establish a kernel capability, installed package version or runtime state.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Distributions owns release-family and integration context; package/repository operations, kernel behavior and service configuration belong in their specialized branches.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Fundamentals → Distributions. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Distributions operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Distributions.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Distributions package the Linux kernel with user-space tools, libraries, init/service defaults, repositories, policies and release lifecycles; the distribution defines integration choices but is not itself the kernel. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin distribution/release + CPU architecture + running kernel → identify the exact process/session and kernel-versus-user-space boundary → capture shell/TTY mode and effective environment where relevant → resolve the real executable/consumer → correlate requested action with observed runtime state → verify the original workload result before changing persistent configuration. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | distribution family/release → repositories/package policy → installed kernel + user-space versions → init/configuration conventions → effective runtime → workload result | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Distribution identity selects the correct integration conventions, but it cannot by itself establish a kernel capability, installed package version or runtime state. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated host, process/session and runtime evidence can establish this Linux Fundamentals proof path: distribution family/release → repositories/package policy → installed kernel + user-space versions → init/configuration conventions → effective runtime → workload result | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host, kernel, process/session, environment or workload scope. Distribution identity selects the correct integration conventions, but it cannot by itself establish a kernel capability, installed package version or runtime state. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven Linux layer: preserve platform identity and the running kernel, inspect the exact process/session and effective configuration/environment, resolve the actual consumer/executable, then verify the original workload before moving into the owning Linux subsystem branch. | Continue to the next unresolved boundary while preserving the original test condition. |
Distributions · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Distributions |
|---|---|
| Topic path | Linux Fundamentals → Distributions |
| Runtime state | Distributions package the Linux kernel with user-space tools, libraries, init/service defaults, repositories, policies and release lifecycles; the distribution defines integration choices but is not itself the kernel. |
| Fast checks | - Record distribution ID/release, architecture and support channel before applying distro-specific instructions. - Identify package manager/repository and init/service conventions used by that distribution. - Verify actual kernel/tool/library versions when behavior depends on them instead of inferring from the distribution label. - After applying distro-specific guidance, verify the effective service/application result on the target release. |
| Verification chain | distribution family/release → repositories/package policy → installed kernel + user-space versions → init/configuration conventions → effective runtime → workload result Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Distribution identity selects the correct integration conventions, but it cannot by itself establish a kernel capability, installed package version or runtime state. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |