PKG-RQUERY(8)
π PKG-RQUERY β a love letter to remote repo queries
okay so bestie, this is the manual page for pkg rquery (section 8 of the System Manager's Manual, if you're keeping track) and it is literally the tool that lets you peek at what's inside your remote repositories without installing anything. Think of it as stalking your crush's profile instead of actually DMing them. No cap. π¦
β¨ NAME β¨
pkg rquery β query information from remote repositories
πΈ SYNOPSIS πΈ
pkg rquery -I|query-format pkg-name
pkg rquery [-aU] [-r reponame ...] -I|query-format
pkg rquery [-U] [-Cgix] [-e evaluation-condition] [-r reponame ...]
-I|query-format pattern ...
π DESCRIPTION π
pkg rquery is your girl for displaying information about remote packages. Not local ones β remote. Respect the distinction, it's giving boundaries. β¨
Also, heads up: package repository catalogues get automatically updated whenever pkg rquery runs, but only if you're a user ID with write access to the package database. Not the case? You can turn the whole thing off with the -U flag, or by setting REPO_AUTOUPDATE to βNOβ in pkg.conf(5). Your call, main character. π
π₯ OPTIONS π₯
The following options are supported by pkg rquery. All of them. Yes queen, read them all.
-a,--allβ match all packages from the database. Every single one. no skips.-C,--case-sensitiveβ makes the standard match, or the regular expression match (-x), againstpkg-nameinpatterncase sensitive. Uppercase girlies matter too.-e evaluation-condition,--evaluate evaluation-conditionβ match packages using the given evaluation-condition. Peep theβEVALUATION FORMATβsection below for the deets, iykyk.-I,--index-lineβ prints out the corresponding line from the portsINDEXfile for each matched package. This is a shorthandquery-formatargument. β οΈ Only the first query format (including the-Ioption) on the command line will be interpreted. First come, first served, periodt.-r reponame,--repository reponameβ query for data about packages from only the named repository. Can be specified multiple times to use several repositories. Data gets queried from the named repositories only, irrespective of the configuredβenabledβstatus fromrepo.conf. By default, catalogues for all enabled repositories are queried. π«Ά-g,--globβ treat pattern as a glob pattern.-i,--case-insensitiveβ makes the standard match, or regular expression (-x) match, againstpkg-nameinpatterncase insensitive. π This is the default, unless you go modify it by settingCASE_SENSITIVE_MATCHtoβtrueβinpkg.conf.-U,--no-repo-updateβ suppresses the automatic update of the local copy of the repository catalogue from remote. Real talk: automatic repository catalogue updates are only attempted when the effective UID of the process has write access to the package database. Otherwise they're silently ignored. Like, ghosted. π»-x,--regexβ treat pattern as a regular expression according to theβmodernβorβextendedβsyntax ofre_format(7).
π QUERY FORMAT π
There are two types of keywords for the query format: the multiline one and the normal one. Only one type of multiline pattern is accepted for a given query. Pick a lane, bestie. π
π Normal patterns:
%Rβ name of the repository the package is in%nβ name of the matched package%vβ version of the matched package%oβ origin of the matched package%pβ prefix of the matched package%mβ maintainer of the matched package%cβ comment of the matched package%eβ description of the matched package%wβ home page of the matched package%qβ architecture of the matched package%lβ license logic of the matched package. One of the following will be printed:βsingleβif the package is distributed under one licenseβandβif the package is multi-licensedβorβif the package is dual-licensed
%s[bh]β the flat size of the matched package, where b is in bytes, and h is in human readable format%Mβ message contained in the matched package%?[drCOLBbA]β returns0if the list is empty and1if the list has information to display:dfor dependenciesrfor reverse dependenciesCfor categoriesOfor optionsLfor licensesBfor required shared librariesbfor provided shared librariesAfor annotations
%#[drCOLBbA]β returns the number of elements in the list:dfor dependenciesrfor reverse dependenciesCfor categoriesOfor optionsLfor licensesBfor required shared librariesbfor provided shared librariesAfor annotations
π¦ Multiline patterns:
%d[nov]β expands to the list of dependencies for the matched package, where n stands for the package name, o for the package origin, and v for the package version.%r[nov]β expands to the list of reverse dependencies for the matched package, where n stands for the package name, o for the package origin, and v for the package version.%Cβ expands to the list of categories the matched package belongs to.%O[kvdD]β expands to the list of options of the matched package, where k stands for option key, v for option value, d for option default value, and D for option description. β οΈ Option default values and descriptions are optional metadata and may be blank for certain packages or repositories. Not everyone fills out their whole profile, y'know?%Lβ expands to the list of license(s) for the matched package.%Bβ expands to the list of shared libraries used by programs from the matched package.%bβ expands to the list of shared libraries provided by the matched package.%A[tv]β expands to the list of annotations associated with the matched package, where t stands for the annotation tag, and v stands for the annotation value.
β EVALUATION FORMAT β
π Variables
%nβ name of the package (type string)%oβ origin of the package (type string)%pβ prefix of the package (type string)%mβ maintainer of the package (type string)%cβ comment of the package (type string)%eβ description of the package (type string)%wβ WWW address of the package (type string)%sβ flatsize of the package (type integer)%aβ automatic status of the package (type integer)%qβ architecture of the package (type string)%Mβ message of the package (type string)%#[drCOLBbA]β number of elements in the list of information (type integer). See%?above for what information is used. π
π§ Operators
var ~ globβ the string value of var matches the given glob pattern.var !~ globβ the string value of var does not match the given glob pattern.var >[=] numβ the numerical value of var is greater than [or equal to] the given number.var <[=] numβ the numerical value of var is less than [or equal to] the given number.var =[=] [num | string]β the value of var is equal to the given number or string.var =~ [num | string]β the value of var is equal (case insensitive) to the given number or string.var != [num | string]β the value of var is not equal to the given number or string.var !=~ [num | string]β the value of var is not equal, case insensitive, to the given number or string.
π ENVIRONMENT π
The following environment variables affect the execution of pkg rquery. See pkg.conf(5) for further description. π
PKG_DBDIRCASE_SENSITIVE_MATCH
πΈ FILES πΈ
See pkg.conf(5).
π«Ά EXIT STATUS π«Ά
The pkg rquery utility exits 0 on success, and >0 if an error occurs. Simple as that, bestie. β¨
π EXAMPLES π
See pkg-query(8) for example usage. (Yes, that's it. She's lowkey pointing you at her sister's page. Iconic behavior, honestly.)
π SEE ALSO π
pkg_create(3), pkg_printf(3), pkg_repo_create(3), pkg_repos(3), pkg-keywords(5), pkg-lua-script(5), pkg-repository(5), pkg-script(5), pkg-triggers(5), pkg.conf(5), pkg(8), pkg-add(8), pkg-alias(8), pkg-annotate(8), pkg-audit(8), pkg-autoremove(8), pkg-check(8), pkg-clean(8), pkg-config(8), pkg-create(8), pkg-delete(8), pkg-fetch(8), pkg-help(8), pkg-info(8), pkg-install(8), pkg-key(8), pkg-lock(8), pkg-plugins(8), pkg-query(8), pkg-register(8), pkg-repo(8), pkg-repositories(8), pkg-search(8), pkg-set(8), pkg-shell(8), pkg-shlib(8), pkg-ssh(8), pkg-stats(8), pkg-triggers(8), pkg-unregister(8), pkg-update(8), pkg-updating(8), pkg-upgrade(8), pkg-version(8), pkg-which(8)
That's the whole squad omg ππ
okay that's the page!! this one's brought to you by the Debian girlies, dated July 7, 2024, and honestly? she ate. go query something, bestie πβ¨
π¦ where this page comes from
- nixos 26.05: pkg 2.7.5
- nixpkgs unstable: pkg 2.7.5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms