Forrest logo
back to the pacman tool

pacman-query:tldr:7f3ef

pacman-query: List installed packages not found in the repositories.
$ pacman --query --foreign
try on your machine

The command "pacman --query --foreign" is used in Arch Linux package management system to list foreign packages installed on your system.

Breaking down the command:

  • "pacman" is the package manager command in Arch Linux.
  • "--query" is the option used to query the package database.
  • "--foreign" is an additional option that filters the query results to only list foreign packages.

Foreign packages are the ones that are installed on your system, but are not part of the official repositories maintained by Arch Linux. These packages are usually installed from other sources, such as the Arch User Repository (AUR) or manually installed packages.

When you run the command "pacman --query --foreign", it will display a list of all the foreign packages installed on your system, along with their version numbers. This can be useful for managing these packages, as they may need manual intervention for updates or removing them.

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 pacman tool