Scroll to navigation

repoquery(1) repoquery(1)

NAME

repoquery

SYNOPSIS

repoquery [options] <item ...>
repoquery -a [options]

DESCRIPTION

repoquery is a program for querying information from YUM repositories similarly to rpm queries.

GENERAL OPTIONS

List valid queryformat tags and exit..
Report program version and exit.
Specify which repository to query. Using this option disables all repositories not explicitly enabled with --repoid option (can be used multiple times). By default repoquery uses whatever repositories are enabled in YUM configuration.
In addition to the default set, query the given additional repository, even if it is disabled in YUM configuration. Can be used multiple times.
Do not query the given repository, even if it is enabled in YUM configuration. Can be used multiple times.
Specify a path or url to a repository (same path as in a baseurl) to add to the repositories for this query. This option can be used multiple times. If you want to view only the pkgs from this repository combine this with --repoid. The repoid for the repository is specified by <repoid>.
Enable YUM plugin support.
For rpmquery compatibility, doesn't do anything.
Help; display a help message and then quit.
Run quietly: no warnings printed to stderr.
Produce verbose output.
Tells repoquery to run entirely from YUM cache - does not download any metadata or update the cache. Queries in this mode can fail or give partial/incorrect results if the cache isn't fully populated beforehand with eg "yum makecache".
Create and use a private cache instead of the main YUM cache. This is used by default when run as non-root user.
Use alternative config file (default is /etc/yum.conf).

PACKAGE QUERY OPTIONS

Show general information about package similarly to "rpm -qi"
List files in package.
List package dependencies.
When used with --requires, resolve capabilities to originating packages.
List capabilities package provides.
List capabilities obsoleted by package.
List capabilities conflicting with package.
List package changelog.
Show a location where the package could be downloaded from. For example: wget `repoquery --location yum`
Show package source RPM name.
Operate on corresponding source RPM.
List the repodata groups (yumgroups.xml) belongs to (if any).
Use name-version-release output format (rpm query default)
Use name-epoch:version-release.architecture output format (default)
Use epoch:name-version-release.architecture output format (easier to parse than nevra)
Specify custom output format for queries. You can add ":date", ":day" and ":isodate" to all the tags that are a time, and you can add ":k", ":m", ":g", ":t" and ":h" to sizes. You can also specify field width as in sprintf (Eg. %-20{name})
For the given packages print a tree of the packages that they require.
For the given packages print a tree of the packages that they conflict.
For the given packages print a tree of the packages that they obsolete.
For the given packages print a tree of the packages that require them.

PACKAGE SELECTION OPTIONS

Query all available packages (for rpmquery compatibility / shorthand for repoquery '*')
Query package owning FILE.
Query all packages that obsolete CAPABILITY.
Query all packages that conflict with CAPABILITY.
Query all packages that provide CAPABILITY.
Query all packages that require CAPABILITY.
When used with --whatrequires, look for non-explicit dependencies in addition to explicit ones (e.g. files and Provides in addition to package names). This is the default.
When used with --whatrequires, search for dependencies only exactly as given. This is effectively the opposite of --alldeps.
When used with --whatrequires, query packages recursively.
Limit the query to packages of given architecture(s). Valid values are all architectures known to rpm/yum such as 'i386' and 'src' for source RPMS. Note that repoquery will now change yum's "arch" to the first value in the archlist. So "--archlist=i386,i686" will change yum's canonical arch to i386, but allow packages of i386 and i686.
Limit what packages are considered for the query. Valid values for WHAT are: installed, available, recent, updates, extras, all and repository (default).
Restrict query ONLY to installed pkgs - disables all repos and only acts on rpmdb.
Query all versions of package. By default only newest packages are considered.

GROUP QUERY OPTIONS

Show general information about group.
List packages belonging to (required by) group.
Specify what type of packages are queried from groups. Valid values for WHAT are all, mandatory, default, optional.
List groups required by group.

GROUP SELECTION OPTIONS

Query all available groups.
Query groups instead of packages.

EXAMPLES

repoquery '*perl*'
repoquery --whatrequires openssl
repoquery -a --qf "%-20{repoid} %{name}"
repoquery -a --pkgnarrow=updates --qf "%{name}:\n%{summary}\n"
repoquery -g --grouppkgs=optional -l base
repoquery --requires anaconda.src
repoquery --archlist=src --whatrequires gail-devel
NB: This command will only work if you have repositories enabled which include srpms.

MISC

A package can be referred to in all queries with any of the following:

name
name.arch
name-ver
name-ver-rel
name-ver-rel.arch
name-epoch:ver-rel.arch
epoch:name-ver-rel.arch
For example: repoquery -l kernel-2.4.1-10.i686
Additionally wildcards (shell-style globs) can be used.

FILES

As repoquery uses YUM libraries for retrieving all the information, it relies on YUM configuration for its default values like which repositories to use. Consult YUM documentation for details:

/etc/yum.conf
/etc/yum/repos.d/
/var/cache/yum/

SEE ALSO

yum.conf (5)
http://yum.baseurl.org/

AUTHORS

See the Authors file included with this program.

BUGS

There are of course no bugs, but should you find any, you should first consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if unsuccessful in finding a resolution contact the mailing list: yum-devel@lists.baseurl.org. To file a bug use http://bugzilla.redhat.com for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report for all other bugs.


17 October 2005 Panu Matilainen