debootstrap
A tool that installs a minimal Debian or Ubuntu base system into a directory without requiring a pre-existing Linux installation. It downloads and configures essential packages needed to boot and run a Linux system.
debootstrap is primarily used to create a new Debian/Ubuntu filesystem in a designated directory by fetching core packages from a package repository. It's invaluable for bootstrapping systems from scratch, creating chroot environments, or setting up virtual machines.
The tool works in stages: first it installs only the bare essentials (base packages), then additional packages can be layered on top. A typical invocation looks like debootstrap focal /target-directory http://archive.ubuntu.com/ubuntu, which installs Ubuntu Focal Fossa into /target-directory.
Common use cases include creating lightweight containers, setting up embedded systems, building custom live USB distributions, or preparing a new disk partition before running a full installer. System administrators often use it to quickly spawn test environments or minimal chroots for package building.