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

41
linux/pacstrap Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pacstrap
> Arch Linux install script to install packages to the specified new root directory.
> More information: <https://man.archlinux.org/man/pacstrap.8>.
- Install the `base` package, Linux kernel and firmware for common hardware:
`pacstrap {{path/to/new/root}} {{base}} {{linux}} {{linux-firmware}}`
- Install the `base` package, Linux LTS kernel and `base-devel` build tools:
`pacstrap {{path/to/new/root}} {{base}} {{base-devel}} {{linux-lts}}`
- Install packages without copy the host's mirrorlist to the target:
`pacstrap -M {{path/to/new/root}} {{packages}}`
- Use an alternate configuration file for Pacman:
`pacstrap -C {{path/to/pacman.conf}} {{path/to/new/root}} {{packages}}`
- Install packages using the package cache on the host instead of on the target:
`pacstrap -c {{path/to/new/root}} {{packages}}`
- Initialize an empty `pacman` keyring in the target without copying it from the host:
`pacstrap -K {{path/to/new/root}} {{packages}}`
- Install packages in interactive mode (prompts for confirmation):
`pacstrap -i {{path/to/new/root}} {{packages}}`
- Install packages using package files:
`pacstrap -U {{path/to/new/root}} {{path/to/package1}} {{path/to/package2}}`