1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-25 13:35:25 +02:00
tldr/pages/linux/pacstrap.md
Vitor Henrique d0a73c4b9c
pages*: fix brand and technical names (#12145)
* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names

* pages*: fix brand and technical names

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git

* bzegrep: enclose egrep with backticks

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* git-bug: use Git instead of `git`

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* git-bug: use Git instead of `git`

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* git-force-clone: use Git instead of `git`

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* gitwatch: use Git instead of `git`

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* hub-init: use Git instead of `git`

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* pages.*: use Linux instead of GNU/Linux

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-30 12:46:32 +08:00

1.2 KiB

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}}

  • Install packages without copy the host's pacman keyring to the target:

pacstrap -G {{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}}