Forrest logo
back to the pacstrap tool

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

The command "pacstrap -M ${path-to-new-root} ${packages}" is used in Arch Linux to install a minimal set of packages onto a new root directory or system.

Here is an explanation of the different components of the command:

  • "pacstrap": It is a script provided by the Arch Linux package "arch-install-scripts" that allows you to install packages from the official repositories onto a new system. It is a common method used during the Arch Linux installation process.
  • "-M ${path-to-new-root}": The "-M" option specifies that the command should use a specific directory as the new root. The "path-to-new-root" variable should be replaced with the actual path to the directory where you want to install the packages. This will be the root directory of the new system.
  • "${packages}": The "${packages}" placeholder represents the list of packages that you want to install onto the new root. This can be a space-separated list of package names, such as "base linux nano", or you can also use package groups like "base-devel" to install a group of related packages.

By using this command, you can install the necessary packages onto the new root directory, preparing it for usage or as a starting point for further customization.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pacstrap tool