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

pacstrap

  • Arch Linux install script to install packages to the specified new root directory.
    More information: <https://man.archlinux.org/man/pacstrap.8>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

pacstrap -G {{path/to/new/root}} {{packages}}

click the source code to copy install pacstrap on any operating system with command-not-found.com