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 PACKAGEParameters & Attributes
| Name | Type | Description |
|---|---|---|
| -Q | option | query installed database |
| -i | option | show details with -Q |
| PACKAGE | operand | package 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