Name

package-query - Query alpm database and/or AUR

Synopsis

package-query <options> [targets …]

Description

Package-query query Alpm and AUR with the possibility to format output.

Options

-A, --aur

Query AUR database.

-L, --list-repo

List configured repositories.

-Q, --query

Query local database.

-S, --sync

Query sync database.

-v, --version

Display version and exit.

-h, --help

Show help.

-b, --dbpath <database path>

Specify new database location, default to <root>/var/lib/pacman.

-c, --config <configuration file>

Specify a custom config, default to <root>/etc:pacman.conf.

-r, --root <root path>

Specify a new root, default to /.

-f, --format <format>

Format output, see Format options.

-p, --file <file>

Query file.

-q, --quiet

No output, return 0 if packages found, else 1.

-u, --upgrades

List updates available.

-x, --escape

Escape \" in output.

-1, --just-one

Show first answer for each target (-i).

--nocolor

Output without colors.

Common search options

-i, --info

Search by name. (by default if no target)

-g, --groups

Filter to packages that are part of group.

-s, --search

Regex search for ALPM and SQL search for AUR.

--sort [n,w,1,2]

Return search results sorted by names (n), by votes (w), by installed date (1) or by theorical size (2).

-m, --foreign

Filter result to packages that were not found in the sync database(s). With -QA search if foreign packages exist in AUR.

-e, --explicit

Only show packages explicitly installed.

-d, --deps

Restrict output to packages installed as dependencie.

-t, --unrequired

Restrict output to packages that are no more required.

--query-type <action>

Query packages which <action> one of targets, where <action> can be depends, provides, replaces or conflicts.

-l, --list

List repository content.

Format options

Format can contain:

%a: architecture
%b: backups file
%d: description
%c: conflicts
%i: AUR ID
%l: local version
%n: name
%o: only for AUR, out of date
%r: repository, 'local' for local packages
%s: sync repository, respect 'pacman.conf' order.
%t: target submitted with command
%v: version, depends on DB
%V: package version in sync db
%w: AUR votes
%1: install date
%2: theorical size
%3: real size
%4: package state. Show a combination of the following states:
        1: foreign
        2: explicitly installed
        4: installed as dependency
        8: unrequired
        16: update available
        32: package part of group
%5: download size
--csep <sep>

For format like %g, %c …, define separator. Default to space.

Environment variables

PQ_COLORS

Specifies the colors used in default output. Its value is a colon-separated list of keys. Supported keys are:
no= No color. (default: 0)
nb= Numbers (when numbering lines) color. (default: 1;33;7)
pkg= Package name. (default: 1)
ver= Package version. (default: 1;32)
lver= Installed version. (default: 1;31;7)
installed= [installed] color. (default: 1;33;7)
grp= Groups. (default: 1;34)
od= Out of date status. (default: 1;33;7)
votes= Number of votes. (default: 1;33;7)
dsc= Description. (default: 0)
other= Respository not explicitly defined. (default: 1;35)
[repo name]= Repository specific color. (default: testing=1;31:core=1;31:extra=1;32:local=1;33)

See Also

Bugs

Authors

Current maintainers: