Forrest logo
tool overview
On this page you find all important commands for the CLI tool pacstrap. If the command you are looking for is missing please ask our AI.

pacstrap

Pacstrap is a command line tool used in Arch Linux to install base packages onto a new system. It is a part of the Arch installation process and allows users to set up a minimal working system with the necessary packages.

To run pacstrap, a user needs to specify a target directory where the packages will be installed. It accepts a list of package names as arguments, which are then downloaded and installed on the target system.

Pacstrap ensures that the base packages, including essential utilities, are installed properly, making the system functional. It also resolves dependencies between packages, ensuring that all required dependencies are included during installation.

Pacstrap is particularly useful during the installation of Arch Linux, as it helps in setting up a basic system quickly and efficiently. Additionally, it allows customization by allowing users to choose exactly which packages they want to install on their system.

Once pacstrap completes its execution, the user can then further configure and customize the system according to their needs, adding additional software and packages as desired.

Overall, pacstrap is a versatile and essential command line tool in Arch Linux that simplifies the installation process by providing a straightforward way to install base packages and kickstart the creation of a functional system.

List of commands for pacstrap:

  • pacstrap:tldr:9dd49 pacstrap: Install packages using package files.
    $ pacstrap -U ${path-to-new-root} ${path-to-package1} ${path-to-package2}
    try on your machine
    explain this command
  • pacstrap:tldr:bbad9 pacstrap: Install packages without copy the host's pacman keyring to the target.
    $ pacstrap -G ${path-to-new-root} ${packages}
    try on your machine
    explain this command
  • pacstrap:tldr:d00df pacstrap: Use an alternate configuration file for Pacman.
    $ pacstrap -C ${path-to-pacman-conf} ${path-to-new-root} ${packages}
    try on your machine
    explain this command
  • pacstrap:tldr:d0f16 pacstrap: Install packages without copy the host's mirrorlist to the target.
    $ pacstrap -M ${path-to-new-root} ${packages}
    try on your machine
    explain this command
  • pacstrap:tldr:d7c79 pacstrap: Install the `base` package, Linux kernel and firmware for common hardware.
    $ pacstrap ${path-to-new-root} ${base} ${linux} ${linux-firmware}
    try on your machine
    explain this command
  • pacstrap:tldr:e3aae pacstrap: Install packages using the package cache on the host instead of on the target.
    $ pacstrap -c ${path-to-new-root} ${packages}
    try on your machine
    explain this command
  • pacstrap:tldr:fdd0e pacstrap: Install packages in interactive mode (prompts for confirmation).
    $ pacstrap -i ${path-to-new-root} ${packages}
    try on your machine
    explain this command
tool overview