GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PKG-RQUERY(8) FreeBSD System Manager's Manual PKG-RQUERY(8)

pkg rquery
query information from remote repositories

pkg rquery -I|query-format pkg-name

pkg rquery [-aU] [-r reponame] -I|query-format

pkg rquery [-U] -e evaluation-condition [-r reponame] -I|query-format

pkg rquery [-U] [-Cgix] [-r reponame] -I|query-format pattern ...

pkg rquery is used for displaying information about remote packages.

Package repository catalogues will be automatically updated whenever pkg rquery is run by a user ID with write access to the package database, unless disabled by the -U flag or setting REPO_AUTOUPDATE to “NO” in pkg.conf(5).

The following options are supported by pkg rquery:
, --all
Match all packages from the database.
, --case-sensitive
Make the standard or the regular expression (-x) matching against pkg-name case sensitive.
evaluation-condition, --evaluate evaluation-condition
Match packages using the given evaluation-condition. See EVALUATION FORMAT for details.
, --index-line
Print out the corresponding line from the ports INDEX file for each matched package. This option is a shorthand query-format argument. Only the first query format (including the -I option) on the command line will be interpreted.
reponame, --repository reponame
Query for data about packages from only the named repository, irrespective of the configured “active” status from repo.conf. By default all repository catalogues marked “active” are queried.
, --glob
Treat pattern as a glob pattern.
, --case-insensitive
Make the standard or regular expression (-x) matching against pkg-name case insensitive. This is the default, unless modified by setting CASE_SENSITIVE_MATCH to “true” in pkg.conf.
, --no-repo-update
Suppress the automatic update of the local copy of the repository catalogue from remote. Automatic repository catalogue updates are only attempted when the effective UID of the process has write access to the package database. Otherwise they are silently ignored.
, --regex
Treat pattern as a regular expression according to the “modern” or “extended” syntax of re_format(7).

There are two types of keywords for the query format: the multiline and the normal one. Only one type of multiline pattern is accepted for a given query.

Name of the repository the package is in
Name of the matched package
Version of the matched package
Origin of the matched package
Prefix of the matched package
Maintainer of the matched package
Comment of the matched package
Description of the matched package
Home page of the matched package
Architecture of the matched package
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
[bh]
The flat size of the matched package, where b is in bytes, and h is in human readable format
Message contained in the matched package
[drCOLBbA]
Returns 0 if the list is empty and 1 if the list has information to display
for dependencies
for reverse dependencies
for categories
for options
for licenses
for required shared libraries
for provided shared libraries
for annotations
[drCOLBbA]
Returns the number of elements in the list
for dependencies
for reverse dependencies
for categories
for options
for licenses
for required shared libraries
for provided shared libraries
for annotations

[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.
[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.
Expands to the list of categories the matched package belongs to.
[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.
Expands to the list of license(s) for the matched package.
Expands to the list of shared libraries used by programs from the matched package.
Expands to the list of shared libraries provided by the matched package.
[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.

Name of the package (type string)
Origin of the package (type string)
Prefix of the package (type string)
Maintainer of the package (type string)
Comment of the package (type string)
Description of the package (type string)
WWW address of the package (type string)
Flatsize of the package (type integer)
Automatic status of the package (type integer)
Architecture of the package (type string)
Message of the package (type string)
[drCOLBbA]
Number of elements in the list of information (type integer). See %? above for what information is used.

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
The numerical value of var is equal to the given number.
var != num
The numerical value of var is not equal to the given number.

The following environment variables affect the execution of pkg rquery. See pkg.conf(5) for further description.
 
 

See pkg.conf(5).

The pkg rquery utility exits 0 on success, and >0 if an error occurs.

See pkg-query(8) for example usage.

pkg_create(3), pkg_printf(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-backup(8), pkg-check(8), pkg-clean(8), pkg-config(8), pkg-create(8), pkg-delete(8), pkg-fetch(8), pkg-info(8), pkg-install(8), pkg-lock(8), pkg-query(8), pkg-register(8), pkg-repo(8), pkg-search(8), pkg-set(8), pkg-shell(8), pkg-shlib(8), pkg-ssh(8), pkg-stats(8), pkg-triggers(8), pkg-update(8), pkg-updating(8), pkg-upgrade(8), pkg-version(8), pkg-which(8)
July 15, 2018 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.