Linux distribution
A complete operating system built around the Linux kernel, such as Debian, Ubuntu or Alpine Linux.
In more detail
Distributions differ in package manager, file locations and release schedule, even though they share the Linux kernel. Debian, Ubuntu, Fedora and Alpine are common examples.
Examples
Ansible's os_family fact groups distributions by lineage, so one condition can cover Debian and Ubuntu.Installing Git differs per distribution: apt on Debian and Ubuntu, dnf on Fedora.A distribution is a tested collection: a kernel plus a package manager, libraries, startup tools, documentation, defaults and a release process run by a community or vendor. It decides where software comes from, how updates are signed, which service manager runs by default and how long security fixes are published. Commands copied from another distribution family may use the wrong package names or tools, so identify the distribution first.Ubuntu, Debian, Fedora and Arch Linux share the Linux kernel family but differ in packages, defaults and support windows.Most distributions split Python into several packages, so pip, venv and Idle may need installing separately.Related terms
- Debian — A long-established, community-run Linux distribution known for stability, used as the base of many images.
- OS family — A fact that groups operating systems by their lineage, such as Debian for Debian and Ubuntu, or RedHat for Red Hat Enterprise Linux and Fedora.
- package manager — A tool that installs, updates and removes software together with what it depends on, such as apt on Debian, apk on Alpine or Homebrew on macOS.
- Linux — A free, open-source operating system kernel, and the family of operating systems built around it.
- Ubuntu — A popular Linux distribution based on Debian, published by Canonical, that installs software with apt.
- userland — Everything in an operating system except the kernel: the libraries, tools, shell and files programs use.
- Alpine Linux — A very small Linux distribution often used as a base image because it is only a few megabytes.
- base image — The image a Dockerfile starts from with FROM, which supplies the operating system files and often a language runtime.
- installing Git — Putting the git program on a computer, which is done differently on each operating system.
- Fedora — A community Linux distribution sponsored by Red Hat that ships new software quickly and installs packages with dnf.
- /etc/os-release — A small text file of name=value lines that tells programs and people which distribution and version a Linux machine runs.
- package family — A group of distributions that share one package format and toolset, such as Debian-style (.deb with apt), Red Hat-style (.rpm with dnf) or Arch-style (pacman).
- release cadence — How often a distribution publishes new versions and how it moves updates from development to users.
- system Python — The copy of Python that the operating system installs for its own tools, which you should leave alone.
Taught in
- Your First Ad Hoc Command — Ansible Configuration Management at Scale
- Gathering Facts — Ansible Configuration Management at Scale
- What A Shell Is, And What Bash Is — Bash Scripting & Command Line Automation
- Which Shell Am I In, And Getting Bash Five — Bash Scripting & Command Line Automation
- Why Containers: Bare Metal, Machines And Processes — Docker Architecture & Production Containers
- Docker, OCI, The Engine And The CLI — Docker Architecture & Production Containers
- Install Docker And Verify Your Environment — Docker Architecture & Production Containers
- FROM, WORKDIR, COPY And ADD — Docker Architecture & Production Containers
- Authenticate, Tag, Push And Pull From A Registry — Docker Architecture & Production Containers
- Minimal Bases, Non Root Users And Smaller Images — Docker Architecture & Production Containers
- Installing Git, And Telling It Who You Are — Advanced Git Internals & Distributed Workflows
- What A Distribution Actually Is — Linux Fundamentals & Systems Administration
- Three Families: apt, dnf And pacman — Linux Fundamentals & Systems Administration
- Installing Python On Linux — Hands-on Python: Complete Video Course & Book
- Idle And The Python Shell — Hands-on Python: Complete Video Course & Book
- A Graphics Introduction — Hands-on Python: Complete Video Course & Book
- Ninety Minutes, Two Kinds Of Question: How Linux+ Is Scored — CompTIA Linux+ (XK0-006) Exam Prep
- The App In /bin That Vanished: The FHS, Distributions And Licences — CompTIA Linux+ (XK0-006) Exam Prep
- The Upgrade That Broke Nginx: Packages, Repositories And Pins On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Clocks, Names, Addresses And Pages: The Services Every Depot Runs — CompTIA Linux+ (XK0-006) Exam Prep
- One Word Locked Out Every Directory User: PAM, SSSD, LDAP And Kerberos — CompTIA Linux+ (XK0-006) Exam Prep
- When awk Runs Out: Python Data Types, Modules And Virtual Environments For Admins — CompTIA Linux+ (XK0-006) Exam Prep
- The Assistant Was Confident: Reviewing AI-Generated Code, Prompts And Data — CompTIA Linux+ (XK0-006) Exam Prep
- SSH Keys And An Account For Ansible — RHCE in Ansible (EX294): Automate Red Hat Systems
- Facts And Magic Variables: Let Each Node Describe Itself — RHCE in Ansible (EX294): Automate Red Hat Systems
- Conditionals: register, when, changed_when And failed_when — RHCE in Ansible (EX294): Automate Red Hat Systems
References
- About Debian
- kernel.org: What is Linux?
- About Alpine Linux
- Fedora Project
- man7: os-release(5)
- Using Python on Unix platforms