DEBOOTSTRAP(8)
๐ DEBOOTSTRAP ๐
okay bestie, welcome to the debootstrap page from the Debian GNU/Linux manual โ section 8, system administration era. buckle up, she's iconic โจ
๐ธ NAME ๐ธ
debootstrap โ bootstrap a basic Debian system. that's it, that's the whole vibe. she builds you a baby Debian from scratch ๐ผ๐
โจ SYNOPSIS โจ
debootstrap [OPTION...] SUITE TARGET [MIRROR [SCRIPT]]
debootstrap [OPTION...] --second-stage
๐ฆ DESCRIPTION ๐ฆ
so debootstrap bootstraps a basic Debian system of SUITE into TARGET from MIRROR by running SCRIPT. like, it literally sets up a whole Debian system for you, no cap.
MIRROR can be an http:// or https:// URL, a file:/// URL, or an ssh:/// URL. pick your fighter ๐
the SUITE can be a release code name (eg, sid, stretch, jessie) or a symbolic name (eg, unstable, testing, stable, oldstable).
โ ๏ธ heads up:file:/URLs are translated tofile:///โ that's the correct scheme per RFC1738 for local filenames, iykyk โ andfile://will not work.ssh://USER@HOST/PATHURLs get retrieved usingscp; using ssh-agent or something similar is strongly recommended fr fr.
debootstrap can be used to install Debian on a system without using an installation disk, but it can also be used to run a different Debian flavor in a chroot environment. the way that works?? you can create a full (minimal) Debian installation which can be used for testing purposes โ see the EXAMPLES section bestie. and if you're looking for a chroot system to build packages, please go take a look at pbuilder. not us. them. ๐ซถ
๐ OPTIONS ๐
--arch=ARCHโ set the target architecture (use this ifdpkgisn't installed). see also--foreign. ๐--include=alpha,betaโ comma separated list of packages which will be added to the download and extract lists.--exclude=alpha,betaโ comma separated list of packages which will be removed from the download and extract lists. > โ ๏ธ WARNING: you can and probably will exclude essential packages, be careful using this option. not me making that mistake ๐--extra-suites=alpha,betaโ also use packages from the listed suites of the archive.--components=alpha,betaโ use packages from the listed components of the archive.--no-resolve-depsโ by default,debootstrapwill attempt to automatically resolve any missing dependencies, warning if any are found. note that this is not a complete dependency resolve in the sense ofdpkgorapt, and that it is far better to specify the entire base system than rely on this option. with this option set, this behaviour is disabled.--log-extra-depsโ if you want to record additional dependencies when resolving package dependencies, set this option to track them throughdebootstrap.log. ๐--variant=minbase|buildd|fakechrootโ name of the bootstrap script variant to use. currently, the variants supported areminbase, which only includes required packages andapt;buildd, which installs thebuild-essentialpackages; andfakechroot, which installs the packages without root privileges. the default, with no--variant=Xargument, is to create a base Debian installation with all packages of priorityrequiredandimportant, includingapt.--merged-usrโ create/{bin,sbin,lib}/symlinks pointing to their counterparts in/usr/. (default for most variants and suites.) ๐--no-merged-usrโ do not create/{bin,sbin,lib}/symlinks pointing to their counterparts in/usr/. (default for thebuilddvariant of Debian 12bookwormor older, and all variants of Debian 9stretchor older.)--keyring=KEYRINGโ override the default keyring for the distribution being bootstrapped, and use KEYRING to check signatures of retrievedReleasefiles. ๐--no-check-sigโ disables checking OpenPGP signatures of retrievedReleasefiles. supported since1.0.139.--no-check-gpgโ deprecated alias for--no-check-sig. ๐ต (she's old, be nice)--force-check-sigโ forces checking OpenPGPReleasefile signatures, disabling automatic fallback to HTTPS in case of a missing keyring. incompatible with the previous option. supported since1.0.139.--force-check-gpgโ deprecated alias for--force-check-sig.--verboseโ produce more info about downloading. she's chatty and we love that ๐ฃ๏ธ--print-debsโ print the packages to be installed, and exit. note that an empty or non-existing TARGET directory must be specified so thatdebootstrapcan downloadPackagesfiles to determine which packages should be installed, and to resolve dependencies. the TARGET directory will be deleted unless--keep-debootstrap-diris specified. ๐--download-onlyโ download packages, but don't perform installation. window shopping fr.--foreignโ do the initial unpack phase of bootstrapping only, for example if the target architecture does not match the host architecture. a copy ofdebootstrapsufficient for completing the bootstrap process will be installed as/debootstrap/debootstrapin the target filesystem. you can run it with the--second-stageoption to complete the bootstrapping process.--second-stageโ complete the bootstrapping process. other arguments are generally not needed.--second-stage-target=DIRโ run second stage in a subdirectory instead of root. (can be used to create a foreign chroot) (requires--second-stage)--keep-debootstrap-dirโ don't delete the/debootstrapdirectory in the target after completing the installation. hoarding, but make it valid ๐--cache-dir=DIRโ cache.debfiles under directory. it should be an absolute path.--unpack-tarball=FILEโ acquire.debsfrom gzipped tarball FILE (specified with absolute path) instead of downloading via HTTP(S).--make-tarball=FILEโ instead of bootstrapping, make a gzipped tarball (written to FILE) of the downloaded packages. the resulting tarball may be passed to a later--unpack-tarball. note that an empty or non-existing TARGET directory must be specified so thatdebootstrapcan download packages to prepare the tarball. the TARGET directory will be deleted unless--keep-debootstrap-diris specified. ๐โจ--debian-installerโ used for internal purposes by the debian-installer. don't touch, she's busy ๐ง--extractor=TYPEโ override automatic.debextractor selection to TYPE. supported extractors are:dpkg-debandar.--no-check-certificateโ do not check certificate against certificate authorities.--ca-certificateโ verify the server against the certificate stored in file (PEM).--certificate=FILEโ use the client certificate stored in file (PEM).--private-key=FILEโ read the private key from file. ๐คซ--inrelease-pathโ determine the path to theInReleasefile of the suite relative to the normal position of anInReleasefile.
๐ EXAMPLES ๐
to setup a stretch system:
debootstrap stretch ./stretch-chroot http://deb.debian.org/debian
debootstrap stretch ./stretch-chroot file:///LOCAL_MIRROR/debian
full process to create a complete Debian installation of sid (unstable) in a chroot โ the whole ritual, bestie:
main # debootstrap sid sid-root http://deb.debian.org/debian/
[ ... watch it download the whole system ]
main # echo "proc sid-root/proc proc defaults 0 0" >> /etc/fstab
main # mount proc sid-root/proc -t proc
main # echo "sysfs sid-root/sys sysfs defaults 0 0" >> /etc/fstab
main # mount sysfs sid-root/sys -t sysfs
main # cp /etc/hosts sid-root/etc/hosts
main # chroot sid-root /bin/bash
๐ AUTHOR ๐
debootstrap was written by Anthony Towns <ajt@debian.org>. this manpage was written by Matt Kraai <kraai@debian.org>. legends only ๐ซก
and that's the whole page, bestie!! this came to you from the Debian Project, dated 2001-04-27, and she's still serving looks in DEBOOTSTRAP(8) ๐
โจ go forth and bootstrap, you've got this ๐
๐ฆ where this page comes from
- alpine 3.23: debootstrap-doc 1.0.142-r0 ยท MIT
- alpine 3.24: debootstrap-doc 1.0.142-r0 ยท MIT
- arch rolling: debootstrap 1.0.145-1 ยท MIT
- ubuntu resolute: debootstrap 1.0.142ubuntu1 ยท MIT
- ubuntu resolute: debootstrap 1.0.142ubuntu2 ยท MIT
- ubuntu stonking: debootstrap 1.0.144ubuntu1 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms