2021-02-11 13:59:20 -03:00
|
|
|
# pacstrap
|
|
|
|
|
2025-05-08 00:59:46 +00:00
|
|
|
> Install Arch Linux packages in the specified new root directory.
|
|
|
|
> More information: <https://manned.org/pacstrap>.
|
2021-02-11 13:59:20 -03:00
|
|
|
|
2025-05-08 00:59:46 +00:00
|
|
|
- Install the `base` package, the Linux kernel and firmware for common hardware:
|
2021-02-11 13:59:20 -03:00
|
|
|
|
|
|
|
`pacstrap {{path/to/new/root}} {{base}} {{linux}} {{linux-firmware}}`
|
|
|
|
|
2025-05-08 00:59:46 +00:00
|
|
|
- Install the `base` package, the Linux LTS kernel and `base-devel` build tools:
|
2021-02-11 13:59:20 -03:00
|
|
|
|
|
|
|
`pacstrap {{path/to/new/root}} {{base}} {{base-devel}} {{linux-lts}}`
|
|
|
|
|
2025-05-08 00:59:46 +00:00
|
|
|
- Install packages and copy the host's Pacman config to the target:
|
|
|
|
|
|
|
|
`pacstrap -P {{path/to/new/root}} {{packages}}`
|
|
|
|
|
|
|
|
- Install packages without copying the host's mirrorlist to the target:
|
2021-02-11 13:59:20 -03:00
|
|
|
|
|
|
|
`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}}`
|
|
|
|
|
2024-02-05 06:09:43 +02:00
|
|
|
- Initialize an empty `pacman` keyring in the target without copying it from the host:
|
2021-02-11 13:59:20 -03:00
|
|
|
|
2024-02-05 06:09:43 +02:00
|
|
|
`pacstrap -K {{path/to/new/root}} {{packages}}`
|
2021-02-11 13:59:20 -03:00
|
|
|
|
|
|
|
- Install packages in interactive mode (prompts for confirmation):
|
|
|
|
|
|
|
|
`pacstrap -i {{path/to/new/root}} {{packages}}`
|