expac
pacman database query tool with custom formatting
TLDR
List dependencies of a package
SYNOPSIS
expac [options] format [targets]
DESCRIPTION
expac extracts data from alpm databases using printf-like format strings. It provides flexible output formatting for pacman-based package queries.
The tool acts as a lightweight alternative to parsing pacman output, offering direct access to package metadata including dependencies, sizes, descriptions, and installation dates. Format specifiers like %n (name), %v (version), %D (dependencies) enable custom reports.
Useful for scripting, package analysis, and generating custom package reports. Particularly powerful when combined with other tools for filtering and processing package information.
PARAMETERS
-S, --sync
Query sync database-Q, --query
Query local database-H, --humansize unit
Human-readable sizes (K, M, G)-d, --delim string
Delimiter between packages-l, --listdelim string
Delimiter for list items
CAVEATS
Arch Linux and derivatives only. Format strings use % specifiers. Part of the pacman ecosystem.
