Pcornel
Linux · Linux Fundamentals

Distributions

Cheat sheet · https://pcornel.dk/topic.php?topic=2653

Back to the Topic

Answer

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.

Remember

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.

First checks

  • cat /etc/os-release — ID, VERSION_ID and name
  • lsb_release -a — release details (if installed)
  • hostnamectl — OS, kernel and architecture in one view

Commands

sudo

Verify in this order

distribution and release identified → matching commands and paths used → packages from supported repositories → release within support

Where it usually breaks

First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2653

Confirmation

Confirm action

Continue?