2025-03-14 21:59:59 -06:00
|
|
|
# debootstrap
|
|
|
|
|
|
|
|
|
|
> Create a basic Debian system.
|
|
|
|
|
> More information: <https://wiki.debian.org/Debootstrap>.
|
|
|
|
|
|
|
|
|
|
- Create a Debian stable release system inside the `debian-root` directory:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo debootstrap stable {{path/to/debian-root}}/ http://deb.debian.org/debian`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a minimal system including only required packages:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo debootstrap --variant=minbase stable {{path/to/debian-root}}/`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Create a Debian Unstable system inside the `sid-root` directory with a local mirror:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo debootstrap sid {{path/to/sid-root}}/ {{file:///path/to/mirror}}/`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Switch to a bootstrapped system:
|
|
|
|
|
|
|
|
|
|
`sudo chroot {{path/to/root}}`
|
|
|
|
|
|
|
|
|
|
- List available releases:
|
|
|
|
|
|
|
|
|
|
`ls /usr/share/debootstrap/scripts/`
|