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       -v, --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       --repofrompath=<repoid>,<path/url>
30              Specify  a  path  or  url  to  a  repository  (same path as in a
31              baseurl) to add to the repositories for this query. This  option
32              can  be  used  multiple times. If you want to view only the pkgs
33              from this repository combine this with --repoid. The repoid  for
34              the repository is specified by <repoid>.
35
36       -q     For rpmquery compatibility, doesn't do anything.
37
38       -h, --help
39              Help; display a help message and then quit.
40
41       --quiet
42              Run quietly: no warnings printed to stderr.
43
44       -C     Tells  repoquery to run entirely from YUM cache - does not down‐
45              load any metadata or update the cache. Queries in this mode  can
46              fail  or give partial/incorrect results if the cache isn't fully
47              populated beforehand with eg "yum makecache".
48
49       --tempcache
50              Create and use a private cache instead of the  main  YUM  cache.
51              This is used by default when run as non-root user.
52
53       -c <config file>
54              Use alternative config file (default is /etc/yum.conf).
55
56

PACKAGE QUERY OPTIONS

58       -i, --info
59              Show general information about package similarly to "rpm -qi"
60
61       -l, --list
62              List files in package.
63
64       --requires
65              List package dependencies.
66
67       --resolve
68              When  used  with --requires, resolve capabilities to originating
69              packages.
70
71       --provides
72              List capabilities package provides.
73
74       --obsoletes
75              List capabilities obsoleted by package.
76
77       --conflicts
78              List capabilities conflicting with package.
79
80       --changelog
81              List package changelog.
82
83       --location
84              Show a location where the package could be downloaded from.  For
85              example: wget `repoquery --location yum`
86
87       -s, --source
88              Show package source RPM name.
89
90       --groupmember PACKAGE
91              List the repodata groups (yumgroups.xml) belongs to (if any).
92
93       --nvr  Use name-version-release output format (rpm query default)
94
95       --nevra
96              Use    name-epoch:version-release.architecture   output   format
97              (default)
98
99       --envra
100              Use epoch:name-version-release.architecture output format  (eas‐
101              ier to parse than nevra)
102
103       --qf=FORMAT, --queryformat=FORMAT
104              Specify custom output format for queries.
105

PACKAGE SELECTION OPTIONS

107       -a     Query  all  available  packages  (for  rpmquery  compatibility /
108              shorthand for repoquery '*')
109
110       -f, --file FILE
111              Query package owning FILE.
112
113       --whatobsoletes CAPABILITY
114              Query all packages that obsolete CAPABILITY.
115
116       --whatconflicts CAPABILITY
117              Query all packages that conflict with CAPABILITY.
118
119       --whatprovides CAPABILITY
120              Query all packages that provide CAPABILITY.
121
122       --whatrequires CAPABILITY
123              Query all packages that require CAPABILITY.
124
125       --alldeps
126              When used with --whatrequires, use  both  automatic  and  manual
127              dependencies for the query.
128
129       --archlist=ARCH1[,ARCH2...]
130              Limit the query to packages of given architecture(s). Valid val‐
131              ues are all architectures known to rpm/yum such  as  'i386'  and
132              'src' for source RPMS.
133
134       --pkgnarrow=WHAT
135              Limit  what  packages are considered for the query. Valid values
136              for WHAT are: installed, available, recent, updates, extras, all
137              and repository (default).
138
139       --show-dupes
140              Query  all  versions of package. By default only newest packages
141              are considered.
142
143

GROUP QUERY OPTIONS

145       -i, --info
146              Show general information about group.
147
148       -l, --list
149              List packages belonging to (required by) group.
150
151       --grouppkgs=WHAT
152              Specify what type of packages are  queried  from  groups.  Valid
153              values for WHAT are all, mandatory, default, optional.
154
155       --requires
156              List groups required by group.
157

GROUP SELECTION OPTIONS

159       -a     Query all available groups.
160
161       -g     Query groups instead of packages.
162

EXAMPLES

164       List all packages whose name contains 'perl':
165              repoquery '*perl*'
166
167       List all packages depending on openssl:
168              repoquery --whatrequires --alldeps openssl
169
170       List  all  package names and the repository they come from, nicely for‐
171       matted:
172              repoquery -a --qf "%-20{repoid} %{name}"
173
174       List name and summary of all available updates (if any), nicely format‐
175       ted:
176              repoquery -a --pkgnarrow=updates --qf "%{name}:\n%{summary}\n"
177
178       List optional packages in base group:
179              repoquery -g --grouppkgs=optional -l base
180
181       List build requirements from 'anaconda' source rpm:
182              repoquery --requires anaconda.src
183
184       List packages which BuildRequire gail-devel
185              repoquery --archlist=src --whatrequires gail-devel
186
187
188

MISC

190       Specifying package names
191              A package can be referred to in all queries with any of the fol‐
192              lowing:
193
194              name
195              name.arch
196              name-ver
197              name-ver-rel
198              name-ver-rel.arch
199              name-epoch:ver-rel.arch
200              epoch:name-ver-rel.arch
201
202              For example: repoquery -l kernel-2.4.1-10.i686
203              Additionally wildcards (shell-style globs) can be used.
204
205

FILES

207       As repoquery uses YUM libraries for retrieving all the information,  it
208       relies on YUM configuration for its default values like which reposito‐
209       ries to use. Consult YUM documentation for details:
210
211       /etc/yum.conf
212       /etc/yum/repos.d/
213       /var/cache/yum/
214
215

SEE ALSO

217       yum.conf (5)
218       http://linux.duke.edu/yum/
219
220

AUTHORS

222       See the Authors file included with this program.
223
224

BUGS

226       There of course aren't any bugs, but if you find any,  they  should  be
227       sent   to  the  mailing  list:  yum@lists.linux.duke.edu  or  filed  in
228       bugzilla.
229
230
231
232Panu Matilainen                   2005 Oct 17                     repoquery(1)
Impressum