Forrest logo
back to the pacman tool

pacman:tldr:658b5

pacman: List installed packages and versions.
$ pacman -Q
try on your machine

The command "pacman -Q" is used in the Arch Linux and its derivatives to query the local package database managed by the Pacman package manager. It provides information about the installed packages on your system. The output includes the package name and version of each installed package.

When you run the "pacman -Q" command, it will display a list of all installed packages and their versions. If you have a lot of packages installed, the list might be quite long.

For example, running "pacman -Q" might show output like:

package1 1.0.0 package2 2.3.1 package3 3.2.0

This means that "package1" is installed with version 1.0.0, "package2" is installed with version 2.3.1, and so on.

The "pacman -Q" command is useful for quickly checking which packages are installed on your system and their versions. It can be helpful for troubleshooting or when you need to know the exact version of a package for compatibility or documentation purposes.

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