Debian is a community project started by Ian Murdock in 1993. It is run by volunteers, guided by its Social Contract and an elected Project Leader, and it is the base for many other distributions, including Ubuntu.
Releases and branches
Debian keeps three main branches:
- stable: the official release, recommended for servers and anyone who values few surprises
- testing: what is being prepared as the next stable release
- unstable (also called
sid): where new package versions land first
Releases are named after Toy Story characters. Debian 11 is bullseye, 12 is bookworm and 13 is trixie. A stable release comes out roughly every two years. During its life it gets security and important bug fixes, not a stream of new versions.
Check which one you have:
$ cat /etc/debian_version
12.5
$ grep CODENAME /etc/os-release
VERSION_CODENAME=bookwormInstalling software with APT
First refresh the list of available packages, then act on it. Commands that change the system need root, shown here with sudo.
$ sudo apt update
$ sudo apt install treeapt update only downloads package information. It upgrades nothing. To install newer versions of what you already have:
$ sudo apt upgradeOn a fresh Debian system your user may not have sudo. If you set a root password during installation, switch to root with su - instead.
Searching and removing
$ apt search tree
$ apt show tree
$ sudo apt remove treeremove keeps system-wide configuration files. apt purge removes those too.
dpkg underneath
APT downloads packages and resolves dependencies. The lower-level tool dpkg handles individual .deb files and records what is installed.
$ dpkg -S /bin/ls
coreutils: /bin/lsThis says which package owns a file. On newer releases you may need /usr/bin/ls, depending on how the package records the path.
Free software and firmware
Debian's main archive contains only software that meets the Debian Free Software Guidelines. Other components, such as contrib and non-free, are separate. Since Debian 12, official installation images include non-free firmware, in a component called non-free-firmware, so more hardware works out of the box.
Try it
On a Debian system or virtual machine, run sudo apt update, then apt show tree. Install it, run tree /etc/apt, and list its files with dpkg -L tree. The packages and disk lab gives you more practice.
Check your understanding
Debian
All 5 sections ยท no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.