Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
linux/debootstrap Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# debootstrap
> Create a basic Debian system.
> More information: <https://wiki.debian.org/Debootstrap>.
- Create a Debian stable release system inside the `debian-root` directory:
`sudo debootstrap stable {{path/to/debian-root/}} http://deb.debian.org/debian`
- Create a minimal system including only required packages:
`sudo debootstrap --variant=minbase stable {{path/to/debian-root/}}`
- Create an Ubuntu 20.04 system inside the `focal-root` directory with a local mirror:
`sudo debootstrap focal {{path/to/focal-root/}} {{file:///path/to/mirror/}}`
- Switch to a bootstrapped system:
`sudo chroot {{path/to/root}}`
- List available releases:
`ls /usr/share/debootstrap/scripts/`