pacstrap
designed to create a new system installation from scratch
TLDR
Install base package, Linux kernel and firmware
SYNOPSIS
pacstrap [-C config] [-c] [-G] [-i] [-K] [-M] [-N] [-P] root [packages...]
DESCRIPTION
pacstrap is designed to create a new system installation from scratch. It installs packages to a specified new root directory, typically used during Arch Linux installation to bootstrap the base system.
The tool handles mounting the target filesystem, installing packages using pacman, and optionally copying the host's configuration. It is part of the arch-install-scripts package.
PARAMETERS
-C _config_
Use alternate pacman configuration file-c
Use package cache on host instead of target-G
Avoid copying host's pacman keyring to target-i
Prompt for package confirmation (interactive mode)-K
Initialize empty pacman keyring in target-M
Avoid copying host's mirrorlist to target-N
Run in unshare mode as regular user-P
Copy host's pacman config to target
CAVEATS
Requires root privileges unless using -N flag. The target directory must be mounted before running. Package signatures are verified using the host's keyring by default. Network access is required for downloading packages.
HISTORY
pacstrap is part of the arch-install-scripts package developed by the Arch Linux team. It replaces manual chroot-based installation methods with a streamlined tool that handles the complexities of bootstrapping an Arch system.
SEE ALSO
pacman(8), arch-chroot(1), genfstab(8)
