commands

pacman — manage Arch packages

-Q queries installed packages; -Qi gives detailed metadata. -Syu synchronizes and performs a full upgrade. Avoid unsupported partial upgrades. Use the specified distribution and fresh private workspace; no sudo.

Formal Syntax & Structure

linux syntaxlinux
pacman -Q PACKAGE

Parameters & Attributes

NameTypeDescription
-Qoptionquery installed database
-ioptionshow details with -Q
PACKAGEoperandpackage name

Return Value

exit status and output

-Q queries installed packages; -Qi gives detailed metadata. -Syu synchronizes and performs a full upgrade. Avoid unsupported partial upgrades.

Working Example

Example Snippetlinux
pacman -Q bash
Linux Reference