From d3d6b60e6d5b0e5f99d040a77ed78d4299b0b4bf Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Thu, 8 May 2025 00:59:46 +0000 Subject: [PATCH] pacstrap: update page (#16406) --- pages/linux/pacstrap.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pages/linux/pacstrap.md b/pages/linux/pacstrap.md index 3d9677478c..8c52a504d8 100644 --- a/pages/linux/pacstrap.md +++ b/pages/linux/pacstrap.md @@ -1,17 +1,21 @@ # pacstrap -> Arch Linux install script to install packages to the specified new root directory. -> More information: . +> Install Arch Linux packages in the specified new root directory. +> More information: . -- Install the `base` package, Linux kernel and firmware for common hardware: +- Install the `base` package, the 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: +- Install the `base` package, the 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: +- 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: `pacstrap -M {{path/to/new/root}} {{packages}}` @@ -30,7 +34,3 @@ - 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}}`