1repoquery(1)                                                      repoquery(1)
2
3
4

NAME

6       repoquery
7

SYNOPSIS

9       repoquery [options] <item ...>
10       repoquery -a [options]
11

DESCRIPTION

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

GENERAL OPTIONS

17       --querytags
18              List valid queryformat tags and exit..
19
20       --version
21              Report program version and exit.
22
23       --repoid=<repo>
24              Specify which repository to query. Using  this  option  disables
25              all  repositories  not  explicitly  enabled with --repoid option
26              (can be used multiple times). By default repoquery uses whatever
27              repositories are enabled in YUM configuration.
28
29       --enablerepo=<repo>
30              In  addition  to  the  default  set,  query the given additional
31              repository, even if it is disabled in YUM configuration.  Can be
32              used multiple times.
33
34       --disablerepo=<repo>
35              Do  not query the given repository, even if it is enabled in YUM
36              configuration.  Can be used multiple times.
37
38       --repofrompath=<repoid>,<path/url>
39              Specify a path or url  to  a  repository  (same  path  as  in  a
40              baseurl)  to add to the repositories for this query. This option
41              can be used multiple times. If you want to view  only  the  pkgs
42              from  this repository combine this with --repoid. The repoid for
43              the repository is specified by <repoid>.
44
45       --plugins
46              Enable YUM plugin support.
47
48       -q, --query
49              For rpmquery compatibility, doesn't do anything.
50
51       -h, --help
52              Help; display a help message and then quit.
53
54       --quiet
55              Run quietly: no warnings printed to stderr.
56
57       --verbose
58              Produce verbose output.
59
60       -C, --cache
61              Tells repoquery to run entirely from YUM cache - does not  down‐
62              load  any metadata or update the cache. Queries in this mode can
63              fail or give partial/incorrect results if the cache isn't  fully
64              populated beforehand with eg "yum makecache".
65
66       --tempcache
67              Create  and  use  a private cache instead of the main YUM cache.
68              This is used by default when run as non-root user.
69
70       -c <config file>, --config=<config file>
71              Use alternative config file (default is /etc/yum.conf).
72
73

PACKAGE QUERY OPTIONS

75       -i, --info
76              Show general information about package similarly to "rpm -qi"
77
78       -l, --list
79              List files in package.
80
81       -R, --requires
82              List package dependencies.
83
84       --resolve
85              When used with --requires, resolve capabilities  to  originating
86              packages.
87
88       --provides
89              List capabilities package provides.
90
91       --obsoletes
92              List capabilities obsoleted by package.
93
94       --conflicts
95              List capabilities conflicting with package.
96
97       --changelog
98              List package changelog.
99
100       --location
101              Show a location where the package could be downloaded from.  For
102              example: wget `repoquery --location yum`
103
104       -s, --source
105              Show package source RPM name.
106
107       --srpm Operate on corresponding source RPM.
108
109       --groupmember PACKAGE
110              List the repodata groups (yumgroups.xml) belongs to (if any).
111
112       --nvr  Use name-version-release output format (rpm query default)
113
114       --nevra
115              Use   name-epoch:version-release.architecture   output    format
116              (default)
117
118       --envra
119              Use  epoch:name-version-release.architecture output format (eas‐
120              ier to parse than nevra)
121
122       --qf=FORMAT, --queryformat=FORMAT
123              Specify custom output format for queries. You can  add  ":date",
124              ":day"  and  ":isodate" to all the tags that are a time, and you
125              can add ":k", ":m", ":g", ":t" and ":h" to sizes. You  can  also
126              specify field width as in sprintf (Eg. %-20{name})
127
128       --tree-requires [pkgs]
129              For  the  given  packages print a tree of the packages that they
130              require.
131
132       --tree-conflicts [pkgs]
133              For the given packages print a tree of the  packages  that  they
134              conflict.
135
136       --tree-obsoletes [pkgs]
137              For  the  given  packages print a tree of the packages that they
138              obsolete.
139
140       --tree-whatrequires [pkgs]
141              For the given packages print a tree of the packages that require
142              them.
143

PACKAGE SELECTION OPTIONS

145       -a, --all
146              Query  all  available  packages  (for  rpmquery  compatibility /
147              shorthand for repoquery '*')
148
149       -f, --file FILE
150              Query package owning FILE.
151
152       --whatobsoletes CAPABILITY
153              Query all packages that obsolete CAPABILITY.
154
155       --whatconflicts CAPABILITY
156              Query all packages that conflict with CAPABILITY.
157
158       --whatprovides CAPABILITY
159              Query all packages that provide CAPABILITY.
160
161       --whatrequires CAPABILITY
162              Query all packages that require CAPABILITY.
163
164       --alldeps
165              When used with --whatrequires, look for  non-explicit  dependen‐
166              cies  in  addition  to explicit ones (e.g. files and Provides in
167              addition to package names).  This is the default.
168
169       --exactdeps
170              When used with  --whatrequires,  search  for  dependencies  only
171              exactly   as   given.   This  is  effectively  the  opposite  of
172              --alldeps.
173
174       --recursive
175              When used with --whatrequires, query packages recursively.
176
177       --archlist=ARCH1[,ARCH2...]
178              Limit the query to packages of given architecture(s). Valid val‐
179              ues  are  all  architectures known to rpm/yum such as 'i386' and
180              'src' for source RPMS. Note that repoquery will now change yum's
181              "arch"   to  the  first  value  in  the  archlist.  So  "--arch‐
182              list=i386,i686" will change yum's canonical arch  to  i386,  but
183              allow packages of i386 and i686.
184
185       --pkgnarrow=WHAT
186              Limit  what  packages are considered for the query. Valid values
187              for WHAT are: installed, available, recent, updates, extras, all
188              and repository (default).
189
190       --installed
191              Restrict  query  ONLY to installed pkgs - disables all repos and
192              only acts on rpmdb.
193
194       --show-dupes, --show-duplicates
195              Query all versions of package. By default only  newest  packages
196              are considered.
197
198

GROUP QUERY OPTIONS

200       -i, --info
201              Show general information about group.
202
203       -l, --list
204              List packages belonging to (required by) group.
205
206       --grouppkgs=WHAT
207              Specify  what  type  of  packages are queried from groups. Valid
208              values for WHAT are all, mandatory, default, optional.
209
210       --requires
211              List groups required by group.
212

GROUP SELECTION OPTIONS

214       -a     Query all available groups.
215
216       -g, --group
217              Query groups instead of packages.
218

EXAMPLES

220       List all packages whose name contains 'perl':
221              repoquery '*perl*'
222
223       List all packages depending on openssl:
224              repoquery --whatrequires openssl
225
226       List all package names and the repository they come from,  nicely  for‐
227       matted:
228              repoquery -a --qf "%-20{repoid} %{name}"
229
230       List name and summary of all available updates (if any), nicely format‐
231       ted:
232              repoquery -a --pkgnarrow=updates --qf "%{name}:\n%{summary}\n"
233
234       List optional packages in base group:
235              repoquery -g --grouppkgs=optional -l base
236
237       List build requirements from 'anaconda' source rpm:
238              repoquery --requires anaconda.src
239
240       List packages which BuildRequire gail-devel
241              repoquery --archlist=src --whatrequires gail-devel
242                NB: This command will  only  work  if  you  have  repositories
243              enabled which include srpms.
244
245
246

MISC

248       Specifying package names
249              A package can be referred to in all queries with any of the fol‐
250              lowing:
251
252              name
253              name.arch
254              name-ver
255              name-ver-rel
256              name-ver-rel.arch
257              name-epoch:ver-rel.arch
258              epoch:name-ver-rel.arch
259
260              For example: repoquery -l kernel-2.4.1-10.i686
261              Additionally wildcards (shell-style globs) can be used.
262
263

FILES

265       As repoquery uses YUM libraries for retrieving all the information,  it
266       relies on YUM configuration for its default values like which reposito‐
267       ries to use. Consult YUM documentation for details:
268
269       /etc/yum.conf
270       /etc/yum/repos.d/
271       /var/cache/yum/
272
273

SEE ALSO

275       yum.conf (5)
276       http://yum.baseurl.org/
277
278

AUTHORS

280       See the Authors file included with this program.
281
282

BUGS

284       There are of course no bugs, but should you find any, you should  first
285       consult  the  FAQ  section  on  http://yum.baseurl.org/wiki/Faq  and if
286       unsuccessful in finding a resolution contact  the  mailing  list:  yum-
287       devel@lists.baseurl.org.   To file a bug use http://bugzilla.redhat.com
288       for Fedora/RHEL/Centos related bugs  and  http://yum.baseurl.org/report
289       for all other bugs.
290
291
292
293
294Panu Matilainen                 17 October 2005                   repoquery(1)
Impressum