1DNF5-REPOQUERY(8)                    dnf5                    DNF5-REPOQUERY(8)
2
3
4

NAME

6       dnf5-repoquery - Repoquery Command
7

SYNOPSIS

9       dnf5 repoquery [options] [<spec>...]
10

DESCRIPTION

12       The repoquery command in DNF5 is used for querying packages by matching
13       various input criteria from the user. Arguments defined  in  spec  list
14       could be either file paths or package specs.
15

OPTIONS

17       --advisories=ADVISORY_NAME,...
18              Limit to packages in advisories with specified name.
19              This is a list option.
20              Expected values are advisory IDs, e.g. FEDORA-2201-123.
21
22
23       --advisory-severities=ADVISORY_SEVERITY,...
24              Limit to packages in advisories with specified severity.
25              This is a list option.
26              Accepted values are: critical, important, moderate, low, none.
27
28
29       --arch=ARCH,...
30              Limit to packages of these architectures.
31              This is a list option.
32
33
34       --available
35              Query available packages.
36              This is the default behavior.
37              Can be combined with --installed to query both installed and available packages.
38
39
40       --bugfix
41              Limit to packages in bugfix advisories.
42
43
44       --bzs=BUGZILLA_ID,...
45              Limit to packages in advisories that fix a Bugzilla ID.
46              This is a list option.
47              Expected values are numeric IDs, e.g. 123123.
48
49
50       --cves=CVE_ID,...
51              Limit to packages in advisories that fix a CVE (Common Vulnerabilities and Exposures) ID.
52              This is a list option.
53              Expected values are string IDs in CVE format, e.g. CVE-2201-0123.
54
55
56       --disable-modular-filtering
57              Include packages of inactive module streams.
58
59
60       --duplicates
61              Limit to installed duplicate packages (i.e. more package versions for  the  same  name and architecture).
62              Installonly packages are excluded from this set.
63
64
65       --enhancement
66              Limit to packages in enhancement advisories.
67
68
69       --exactdeps
70              Limit to packages that require <capability> specified by --whatrequires or --whatdepends.
71              This option is stackable with --whatrequires or --whatdepends only.
72
73
74       --extras
75              Limit to installed packages that are not present in any available repository.
76
77
78       --file=FILE,...
79              Limit to packages that own these files.
80              This is a list option.
81
82
83       --installed
84              Query installed packages.
85              Can be combined with --available to query both installed and available packages.
86
87
88       --installonly
89              Limit to installed installonly packages.
90
91
92       --latest-limit=N
93              Limit to N latest packages for a given name.arch (or all except N latest if N is negative).
94
95
96       --leaves
97              Limit to groups of installed packages not required by other installed packages.
98
99
100       --newpackage
101              Limit to packages in newpackage advisories.
102
103
104       --recent
105              Limit to only recently changed packages.
106
107
108       --security
109              Limit to packages in security advisories.
110
111
112       --srpm
113              After filtering is finished use packages' corresponding source RPMs for output.
114              Enables source repositories.
115
116
117       --unneeded
118              Limit to unneeded installed packages (i.e. packages that were installed as dependencies but are no longer needed).
119              This switch lists packages that are going to be removed after executing the autoremove command.
120
121
122       --upgrades
123              Limit to available packages that provide an upgrade for some already installed package.
124
125
126       --userinstalled
127              Limit to packages that are not installed as dependencies or weak dependencies.
128              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.
129              The result may be influenced by the "exclude" option in the configuration file.
130
131
132       --whatconflicts=CAPABILITY,...
133              Limit to packages that conflict with any of <capabilities>.
134              This is a list option.
135
136
137       --whatdepends=CAPABILITY,...
138              Limit to packages that require, enhance, recommend, suggest or supplement any of <capabilities>.
139              This is a list option.
140
141
142       --whatenhances=CAPABILITY,...
143              Limit to packages that enhance any of <capabilities>. Use --whatdepends if you want to list all depending packages.
144              This is a list option.
145
146
147       --whatobsoletes=CAPABILITY,...
148              Limit to packages that obsolete any of <capabilities>.
149              This is a list option.
150
151
152       --whatprovides=CAPABILITY,...
153              Limit to packages that provide any of <capabilities>.
154              This is a list option.
155
156
157       --whatrecommends=CAPABILITY,...
158              Limit to packages that recommend any of <capabilities>. Use --whatdepends if you want to list all depending packages.
159              This is a list option.
160
161
162       --whatrequires=CAPABILITY,...
163              Limit to packages that require any of <capabilities>. Use --whatdepends if you want to list all depending packages.
164              This is a list option.
165
166
167       --whatsuggests=CAPABILITY,...
168              Limit to packages that suggest any of <capabilities>. Use --whatdepends if you want to list all depending packages.
169              This is a list option.
170
171
172       --whatsupplements=CAPABILITY,...
173              Limit to packages that supplement any of <capabilities>. Use --whatdepends if you want to list all depending packages.
174              This is a list option.
175
176

FORMATTING OPTIONS

178       Set what information is displayed about each package. The following are
179       mutually exclusive, i.e. at most one can be specified. If no formatting
180       option  is  given,  selected  packages are displayed in "%{full_nevra}"
181       queryformat.
182
183       --conflicts
184              Like --qf "%{conflicts}" but deduplicated and sorted per line.
185
186
187       --depends
188              Like --qf "%{depends}" but deduplicated and sorted per line.
189
190
191       --enhances
192              Like --qf "%{enhances}" but deduplicated and sorted per line.
193
194
195       --files
196              Like --qf "%{files}" but deduplicated and sorted per line.
197
198
199       --obsoletes
200              Like --qf "%{obsoletes}" but deduplicated and sorted per line.
201
202
203       --provides
204              Like --qf "%{provides}" but deduplicated and sorted per line.
205
206
207       --recommends
208              Like --qf "%{recommends}" but deduplicated and sorted per line.
209
210
211       --requires
212              Like --qf "%{requires}" but deduplicated and sorted per line.
213
214
215       --requires-pre
216              Like --qf "%{requires_pre}" but deduplicated and sorted per line.
217
218
219       --sourcerpm
220              Like --qf "%{sourcerpm}" but deduplicated and sorted per line.
221
222
223       --suggests
224              Like --qf "%{suggests}" but deduplicated and sorted per line.
225
226
227       --supplements
228              Like --qf "%{supplements}" but deduplicated and sorted per line.
229
230
231       --location
232              Like --qf "%{location}" but deduplicated and sorted per line.
233
234
235       --info
236              Show detailed information about the package.
237
238
239       --changelogs
240              Print the package changelogs.
241
242
243       --querytags
244              Display available tags for --queryformat.
245
246
247       --queryformat=<format>
248              Display format for packages. The <format> string can contain tags (%{<tag>}) which are replaced with corresponding attributes of the package.
249              Default is "%{full_nevra}". The <format> string is expanded and deduplicated for each package.
250
251              * arch - Display architecture of the package.
252              * buildtime - Display buildtime of the package in Unix time.
253              * conflicts - Display capabilities that the package conflicts with. Separated by new lines.
254              * debug_name - Display name of debuginfo package of the package.
255              * depends - Display capabilities that the package depends on, enhances, recommends, suggests or supplements. Separated by new lines.
256              * description - Display description of the package.
257              * downloadsize - Display download size of the package.
258              * enhances - Display capabilities enhanced by the package. Separated by new lines.
259              * epoch - Display epoch of the package.
260              * evr - Display epoch:version-release of the package. Epoch 0 is omitted.
261              * files - Show files in the package. Separated by new lines.
262              * from_repo - Display id of repository the package is installed from. Empty for not installed packages.
263              * full_nevra - Display name-epoch:version-release.arch of the package. Even epoch 0 is included.
264              * group - Display group of the package. This is not Comps group.
265              * location - Display location of the package.
266              * installsize - Display install size of the package.
267              * installtime - Display install time of the package.
268              * license - Display license of the package.
269              * name - Display name of the package.
270              * obsoletes - Display capabilities obsoleted by the package. Separated by new lines.
271              * packager - Display packager of the package.
272              * prereq_ignoreinst - Display safe to remove requires_pre requirements of an installed package. Empty for not installed packages. Separated by new lines.
273              * provides - Display capabilities provided by the package. Separated by new lines.
274              * reason - Display reason why the packages was installed.
275              * recommends - Display capabilities recommended by the package. Separated by new lines.
276              * regular_requires - Display capabilities requried by the package without its %pre, %post, %preun and %postun requirements. Separated by new lines.
277              * release - Display release of the package.
278              * repoid - Display id of repository the package is in.
279              * reponame - Display name of repository the package is in.
280              * requires - Display capabilities requried by the package (combines regular_requires and requires_pre).
281              * requires_pre - For an installed package display capabilities that it depends on to run its %pre, %post, %preun and %postun scripts. For not installed package display just %pre and $post requirements. Separated by new lines.
282              * source_debug_name - Display name of debuginfo package for source package of the package.
283              * source_name - Display source RPM name of the package.
284              * sourcerpm - Display source RPM of the package.
285              * suggests - Display capabilities suggested by the package. Separated by new lines.
286              * summary - Display summary of the package.
287              * supplements - Display capabilities supplemented by the package. Separated by new lines.
288              * url - Display url of the package.
289              * vendor - Display vendor of the package.
290              * version - Display version of the package.
291
292

EXAMPLES

294       dnf5 repoquery /etc/koji.conf
295              List packages which provide the given file.
296
297
298       dnf5 repoquery *http*
299              List packages containing the http inside their name.
300
301
302       dnf5 repoquery --installed --security
303              List installed packages included in any security advisories.
304
305

SEE ALSO

307          dnf5-advisory(8), Advisory command
308          dnf5-leaves(8), Leaves command
309          dnf5-specs(7), Patterns specification
310
311

AUTHOR

313       See AUTHORS.md in dnf5 source distribution.
314
316       Contributors to the dnf5 project.
317
318
319
320
321                                 Nov 09, 2023                DNF5-REPOQUERY(8)
Impressum