Debian Codegraph @

upstream/opensuse-leap-16-1/man8/dnf5-repoquery.8

raw
1 .\" Man page generated from reStructuredText.
2 .
3 .
4 .nr rst2man-indent-level 0
5 .
6 .de1 rstReportMargin
7 \\$1 \\n[an-margin]
8 level \\n[rst2man-indent-level]
9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
10 -
11 \\n[rst2man-indent0]
12 \\n[rst2man-indent1]
13 \\n[rst2man-indent2]
14 ..
15 .de1 INDENT
16 .\" .rstReportMargin pre:
17 . RS \\$1
18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
19 . nr rst2man-indent-level +1
20 .\" .rstReportMargin post:
21 ..
22 .de UNINDENT
23 . RE
24 .\" indent \\n[an-margin]
25 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
26 .nr rst2man-indent-level -1
27 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
29 ..
30 .TH "DNF5-REPOQUERY" "8" "Apr 29, 2025" "" "dnf5"
31 .SH NAME
32 dnf5-repoquery \- Repoquery Command
33 .SH SYNOPSIS
34 .sp
35 \fBdnf5 repoquery [options] [<spec>...]\fP
36 .SH DESCRIPTION
37 .sp
38 The \fBrepoquery\fP command in \fBDNF5\fP is used for querying packages by matching
39 various input criteria from the user. Arguments defined in \fBspec\fP list are used
40 as \fB<package\-file\-spec>\fP\&.
41 .SH OPTIONS
42 .INDENT 0.0
43 .TP
44 .B \fB\-\-advisories=ADVISORY_NAME,...\fP
45 .nf
46 Limit to packages in advisories with specified name.
47 This is a list option.
48 Expected values are advisory IDs, e.g. \fIFEDORA\-2201\-123\fP\&.
49 .fi
50 .sp
51 .TP
52 .B \fB\-\-advisory\-severities=ADVISORY_SEVERITY,...\fP
53 .nf
54 Limit to packages in advisories with specified severity.
55 This is a list option.
56 Accepted values are: \fIcritical\fP, \fIimportant\fP, \fImoderate\fP, \fIlow\fP, \fInone\fP\&.
57 .fi
58 .sp
59 .TP
60 .B \fB\-\-arch=ARCH,...\fP
61 .nf
62 Limit to packages of these architectures.
63 This is a list option.
64 .fi
65 .sp
66 .TP
67 .B \fB\-\-available\fP
68 .nf
69 Query available packages.
70 This is the default behavior.
71 Can be combined with \fB\-\-installed\fP to query both installed and available packages.
72 .fi
73 .sp
74 .TP
75 .B \fB\-\-bugfix\fP
76 .nf
77 Limit to packages in bugfix advisories.
78 .fi
79 .sp
80 .TP
81 .B \fB\-\-bzs=BUGZILLA_ID,...\fP
82 .nf
83 Limit to packages in advisories that fix a Bugzilla ID.
84 This is a list option.
85 Expected values are numeric IDs, e.g. \fI123123\fP\&.
86 .fi
87 .sp
88 .TP
89 .B \fB\-\-cves=CVE_ID,...\fP
90 .nf
91 Limit to packages in advisories that fix a CVE (Common Vulnerabilities and Exposures) ID.
92 This is a list option.
93 Expected values are string IDs in CVE format, e.g. \fICVE\-2201\-0123\fP\&.
94 .fi
95 .sp
96 .TP
97 .B \fB\-\-disable\-modular\-filtering\fP
98 .nf
99 Include packages of inactive module streams.
100 .fi
101 .sp
102 .TP
103 .B \fB\-\-duplicates\fP
104 .nf
105 Limit to installed duplicate packages (i.e. more package versions for the same name and architecture).
106 Installonly packages are excluded from this set.
107 .fi
108 .sp
109 .TP
110 .B \fB\-\-enhancement\fP
111 .nf
112 Limit to packages in enhancement advisories.
113 .fi
114 .sp
115 .TP
116 .B \fB\-\-exactdeps\fP
117 .nf
118 Limit to packages that require <capability> specified by \-\-whatrequires or \-\-whatdepends.
119 This option is stackable with \-\-whatrequires or \-\-whatdepends only.
120 .fi
121 .sp
122 .TP
123 .B \fB\-\-extras\fP
124 .nf
125 Limit to installed packages that are not present in any available repository.
126 .fi
127 .sp
128 .TP
129 .B \fB\-f, \-\-file=FILE,...\fP
130 .nf
131 Limit to packages that own these files.
132 This is a list option.
133 .fi
134 .sp
135 .TP
136 .B \fB\-\-installed\fP
137 .nf
138 Query installed packages.
139 Can be combined with \fB\-\-available\fP to query both installed and available packages.
140 .fi
141 .sp
142 .TP
143 .B \fB\-\-installonly\fP
144 .nf
145 Limit to installed installonly packages.
146 .fi
147 .sp
148 .TP
149 .B \fB\-\-latest\-limit=N\fP
150 .nf
151 Limit to N latest packages for a given name.arch (or all except N latest if N is negative).
152 .fi
153 .sp
154 .TP
155 .B \fB\-\-leaves\fP
156 .nf
157 Limit to groups of installed packages not required by other installed packages.
158 .fi
159 .sp
160 .TP
161 .B \fB\-\-newpackage\fP
162 .nf
163 Limit to packages in newpackage advisories.
164 .fi
165 .sp
166 .TP
167 .B \fB\-\-providers\-of=PACKAGE_ATTRIBUTE\fP
168 .nf
169 After filtering is finished get selected attribute of packages and output packages that provide it.
170 The outputted packages are limited by \fB\-\-available\fP, \fB\-\-installed\fP and \fB\-\-arch\fP options.
171 Supports: conflicts, depends, enhances, obsoletes, provides, recommends, requires, requires_pre, suggests, supplements.
172 .fi
173 .sp
174 .TP
175 .B \fB\-\-recent\fP
176 .nf
177 Limit to only recently changed packages.
178 .fi
179 .sp
180 .TP
181 .B \fB\-\-recursive\fP
182 .nf
183 This option is stackable with \-\-whatrequires or \-\-providers\-of=requires only.
184 When used with \-\-whatrequires: it extends the output with packages that require anything provided by outputted packages.
185 When used with \-\-providers\-of=requires: it extends the output with packages that provide anything required by outputted packages.
186 It repeats the output extension as long as new packages are being added.
187 The added packages are limited by \fB\-\-available\fP, \fB\-\-installed\fP and \fB\-\-arch\fP options.
188 .fi
189 .sp
190 .TP
191 .B \fB\-\-security\fP
192 .nf
193 Limit to packages in security advisories.
194 .fi
195 .sp
196 .TP
197 .B \fB\-\-srpm\fP
198 .nf
199 After filtering is finished use packages\(aq corresponding source RPMs for output.
200 Enables source repositories.
201 .fi
202 .sp
203 .TP
204 .B \fB\-\-unneeded\fP
205 .nf
206 Limit to unneeded installed packages (i.e. packages that were installed as dependencies but are no longer needed).
207 This switch lists packages that are going to be removed after executing the \fIautoremove\fP command.
208 .fi
209 .sp
210 .TP
211 .B \fB\-\-upgrades\fP
212 .nf
213 Limit to available packages that provide an upgrade for some already installed package.
214 .fi
215 .sp
216 .TP
217 .B \fB\-\-userinstalled\fP
218 .nf
219 Limit to packages that are not installed as dependencies or weak dependencies.
220 This means limit to packages that were installed at the user request or indirectly as a part of a module profile or comps group. Additionally it returns packages with unknown reason.
221 The result may be influenced by the \(dqexclude\(dq option in the configuration file.
222 To get an exact reason of the installation, use \fB\-\-queryformat \(aq%{name} %{reason}\en\(aq\fP option.
223 .fi
224 .sp
225 .TP
226 .B \fB\-\-whatconflicts=CAPABILITY,...\fP
227 .nf
228 Limit to packages that conflict with any of <capabilities>.
229 This is a list option.
230 .fi
231 .sp
232 .TP
233 .B \fB\-\-whatdepends=CAPABILITY,...\fP
234 .nf
235 Limit to packages that require, enhance, recommend, suggest or supplement any of <capabilities>.
236 This is a list option.
237 .fi
238 .sp
239 .TP
240 .B \fB\-\-whatenhances=CAPABILITY,...\fP
241 .nf
242 Limit to packages that enhance any of <capabilities>. Use \-\-whatdepends if you want to list all depending packages.
243 This is a list option.
244 .fi
245 .sp
246 .TP
247 .B \fB\-\-whatobsoletes=CAPABILITY,...\fP
248 .nf
249 Limit to packages that obsolete any of <capabilities>.
250 This is a list option.
251 .fi
252 .sp
253 .TP
254 .B \fB\-\-whatprovides=CAPABILITY,...\fP
255 .nf
256 Limit to packages that provide any of <capabilities>. Capabilities \fI\%specifying a file provide\fP are also matched against file provides.
257 This is a list option.
258 .fi
259 .sp
260 .TP
261 .B \fB\-\-whatrecommends=CAPABILITY,...\fP
262 .nf
263 Limit to packages that recommend any of <capabilities>. Use \-\-whatdepends if you want to list all depending packages.
264 This is a list option.
265 .fi
266 .sp
267 .TP
268 .B \fB\-\-whatrequires=CAPABILITY,...\fP
269 .nf
270 Limit to packages that require any of <capabilities>. Use \-\-whatdepends if you want to list all depending packages.
271 This is a list option.
272 .fi
273 .sp
274 .TP
275 .B \fB\-\-whatsuggests=CAPABILITY,...\fP
276 .nf
277 Limit to packages that suggest any of <capabilities>. Use \-\-whatdepends if you want to list all depending packages.
278 This is a list option.
279 .fi
280 .sp
281 .TP
282 .B \fB\-\-whatsupplements=CAPABILITY,...\fP
283 .nf
284 Limit to packages that supplement any of <capabilities>. Use \-\-whatdepends if you want to list all depending packages.
285 This is a list option.
286 .fi
287 .sp
288 .UNINDENT
289 .SH FORMATTING OPTIONS
290 .sp
291 Set what information is displayed about each package. The following are mutually exclusive, i.e. at most one can be specified. If no formatting option is given, selected packages are displayed in \fB\(dq%{full_nevra}\(dq\fP queryformat.
292 .INDENT 0.0
293 .TP
294 .B \fB\-\-conflicts\fP
295 .nf
296 Like \fB\-\-qf \(dq%{conflicts}\(dq\fP but deduplicated and sorted per line.
297 .fi
298 .sp
299 .TP
300 .B \fB\-\-depends\fP
301 .nf
302 Like \fB\-\-qf \(dq%{depends}\(dq\fP but deduplicated and sorted per line.
303 .fi
304 .sp
305 .TP
306 .B \fB\-\-enhances\fP
307 .nf
308 Like \fB\-\-qf \(dq%{enhances}\(dq\fP but deduplicated and sorted per line.
309 .fi
310 .sp
311 .TP
312 .B \fB\-\-files\fP
313 .nf
314 Like \fB\-\-qf \(dq%{files}\(dq\fP but deduplicated and sorted per line.
315 .fi
316 .sp
317 .TP
318 .B \fB\-\-obsoletes\fP
319 .nf
320 Like \fB\-\-qf \(dq%{obsoletes}\(dq\fP but deduplicated and sorted per line.
321 .fi
322 .sp
323 .TP
324 .B \fB\-\-provides\fP
325 .nf
326 Like \fB\-\-qf \(dq%{provides}\(dq\fP but deduplicated and sorted per line.
327 .fi
328 .sp
329 .TP
330 .B \fB\-\-recommends\fP
331 .nf
332 Like \fB\-\-qf \(dq%{recommends}\(dq\fP but deduplicated and sorted per line.
333 .fi
334 .sp
335 .TP
336 .B \fB\-\-requires\fP
337 .nf
338 Like \fB\-\-qf \(dq%{requires}\(dq\fP but deduplicated and sorted per line.
339 .fi
340 .sp
341 .TP
342 .B \fB\-\-requires\-pre\fP
343 .nf
344 Like \fB\-\-qf \(dq%{requires_pre}\(dq\fP but deduplicated and sorted per line.
345 .fi
346 .sp
347 .TP
348 .B \fB\-\-sourcerpm\fP
349 .nf
350 Like \fB\-\-qf \(dq%{sourcerpm}\(dq\fP but deduplicated and sorted per line.
351 .fi
352 .sp
353 .TP
354 .B \fB\-\-suggests\fP
355 .nf
356 Like \fB\-\-qf \(dq%{suggests}\(dq\fP but deduplicated and sorted per line.
357 .fi
358 .sp
359 .TP
360 .B \fB\-\-supplements\fP
361 .nf
362 Like \fB\-\-qf \(dq%{supplements}\(dq\fP but deduplicated and sorted per line.
363 .fi
364 .sp
365 .TP
366 .B \fB\-\-location\fP
367 .nf
368 Like \fB\-\-qf \(dq%{location}\(dq\fP but deduplicated and sorted per line.
369 .fi
370 .sp
371 .TP
372 .B \fB\-i, \-\-info\fP
373 .nf
374 Show detailed information about the package.
375 .fi
376 .sp
377 .TP
378 .B \fB\-\-changelogs\fP
379 .nf
380 Print the package changelogs.
381 .fi
382 .sp
383 .TP
384 .B \fB\-\-querytags\fP
385 .nf
386 Display available tags for \-\-queryformat.
387 .fi
388 .sp
389 .TP
390 .B \fB\-\-queryformat=<format>\fP
391 .nf
392 Display format for packages. The \fB<format>\fP string can contain tags (\fB%{<tag>}\fP) which are replaced with corresponding attributes of the package.
393 Default is \fB\(dq%{full_nevra}\(dq\fP\&. The \fB<format>\fP string is expanded and deduplicated for each package.
394
395 * \fBarch\fP \- Display architecture of the package.
396 * \fBbuildtime\fP \- Display buildtime of the package in Unix time.
397 * \fBconflicts\fP \- Display capabilities that the package conflicts with. Separated by new lines.
398 * \fBdebug_name\fP \- Display name of debuginfo package of the package.
399 * \fBdepends\fP \- Display capabilities that the package depends on, enhances, recommends, suggests or supplements. Separated by new lines.
400 * \fBdescription\fP \- Display description of the package.
401 * \fBdownloadsize\fP \- Display download size of the package.
402 * \fBenhances\fP \- Display capabilities enhanced by the package. Separated by new lines.
403 * \fBepoch\fP \- Display epoch of the package.
404 * \fBevr\fP \- Display epoch:version\-release of the package. Epoch 0 is omitted.
405 * \fBfiles\fP \- Show files in the package. Separated by new lines.
406 * \fBfrom_repo\fP \- Display id of repository the package is installed from. Empty for not installed packages.
407 * \fBfull_nevra\fP \- Display name\-epoch:version\-release.arch of the package. Even epoch 0 is included.
408 * \fBgroup\fP \- Display group of the package. This is not Comps group.
409 * \fBlocation\fP \- Display location of the package.
410 * \fBinstallsize\fP \- Display install size of the package.
411 * \fBinstalltime\fP \- Display install time of the package.
412 * \fBlicense\fP \- Display license of the package.
413 * \fBname\fP \- Display name of the package.
414 * \fBobsoletes\fP \- Display capabilities obsoleted by the package. Separated by new lines.
415 * \fBpackager\fP \- Display packager of the package.
416 * \fBprereq_ignoreinst\fP \- Display safe to remove requires_pre requirements of an installed package. Empty for not installed packages. Separated by new lines.
417 * \fBprovides\fP \- Display capabilities provided by the package. Separated by new lines.
418 * \fBreason\fP \- Display reason why the packages was installed.
419 * \fBrecommends\fP \- Display capabilities recommended by the package. Separated by new lines.
420 * \fBregular_requires\fP \- Display capabilities required by the package without its \fB%pre\fP, \fB%post\fP, \fB%preun\fP and \fB%postun\fP requirements. Separated by new lines.
421 * \fBrelease\fP \- Display release of the package.
422 * \fBrepoid\fP \- Display id of repository the package is in.
423 * \fBreponame\fP \- Display name of repository the package is in.
424 * \fBrequires\fP \- Display capabilities required by the package (combines regular_requires and requires_pre).
425 * \fBrequires_pre\fP \- For an installed package display capabilities that it depends on to run its \fB%pre\fP, \fB%post\fP, \fB%preun\fP and \fB%postun\fP scripts. For not installed package display just \fB%pre\fP and \fB$post\fP requirements. Separated by new lines.
426 * \fBsource_debug_name\fP \- Display name of debuginfo package for source package of the package.
427 * \fBsource_name\fP \- Display source RPM name of the package.
428 * \fBsourcerpm\fP \- Display source RPM of the package.
429 * \fBsuggests\fP \- Display capabilities suggested by the package. Separated by new lines.
430 * \fBsummary\fP \- Display summary of the package.
431 * \fBsupplements\fP \- Display capabilities supplemented by the package. Separated by new lines.
432 * \fBurl\fP \- Display url of the package.
433 * \fBvendor\fP \- Display vendor of the package.
434 * \fBversion\fP \- Display version of the package.
435 .fi
436 .sp
437 .UNINDENT
438 .SH EXAMPLES
439 .INDENT 0.0
440 .TP
441 .B \fBdnf5 repoquery /etc/koji.conf\fP
442 .nf
443 List packages which provide the given file.
444 .fi
445 .sp
446 .TP
447 .B \fBdnf5 repoquery *http*\fP
448 .nf
449 List packages containing the \fBhttp\fP inside their name.
450 .fi
451 .sp
452 .TP
453 .B \fBdnf5 repoquery \-\-installed \-\-security\fP
454 .nf
455 List installed packages included in any security advisories.
456 .fi
457 .sp
458 .UNINDENT
459 .SH SEE ALSO
460 .INDENT 0.0
461 .INDENT 3.5
462 .nf
463 \fBdnf5\-advisory(8)\fP, \fI\%Advisory command\fP
464 \fBdnf5\-leaves(8)\fP, \fI\%Leaves command\fP
465 \fBdnf5\-specs(7)\fP, \fI\%Patterns specification\fP
466 .fi
467 .sp
468 .UNINDENT
469 .UNINDENT
470 .SH AUTHOR
471 See AUTHORS.md in dnf5 source distribution.
472 .SH COPYRIGHT
473 Contributors to the dnf5 project.
474 .\" Generated by docutils manpage writer.
475 .