| 1 |
.\" Man page generated from reStructuredText |
| 2 |
.\" by the Docutils 0.22.4 manpage writer. |
| 3 |
. |
| 4 |
. |
| 5 |
.nr rst2man-indent-level 0 |
| 6 |
. |
| 7 |
.de1 rstReportMargin |
| 8 |
\\$1 \\n[an-margin] |
| 9 |
level \\n[rst2man-indent-level] |
| 10 |
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 11 |
- |
| 12 |
\\n[rst2man-indent0] |
| 13 |
\\n[rst2man-indent1] |
| 14 |
\\n[rst2man-indent2] |
| 15 |
.. |
| 16 |
.de1 INDENT |
| 17 |
.\" .rstReportMargin pre: |
| 18 |
. RS \\$1 |
| 19 |
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] |
| 20 |
. nr rst2man-indent-level +1 |
| 21 |
.\" .rstReportMargin post: |
| 22 |
.. |
| 23 |
.de UNINDENT |
| 24 |
. RE |
| 25 |
.\" indent \\n[an-margin] |
| 26 |
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 27 |
.nr rst2man-indent-level -1 |
| 28 |
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 29 |
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u |
| 30 |
.. |
| 31 |
.TH "DNF5-SEARCH" "8" "May 09, 2026" "" "dnf5" |
| 32 |
.SH NAME |
| 33 |
dnf5-search \- Search Command |
| 34 |
.SH SYNOPSIS |
| 35 |
.sp |
| 36 |
\fBdnf5 search [options] <pattern>...\fP |
| 37 |
.SH DESCRIPTION |
| 38 |
.sp |
| 39 |
The \fBsearch\fP command in \fBDNF5\fP is used for searching packages by matching |
| 40 |
given keywords from the user against various metadata. |
| 41 |
.sp |
| 42 |
By default the command searches for all requested keys (AND operation) in |
| 43 |
\fIName\fP or \fISummary\fP fields from the RPM package metadata. Users can limit |
| 44 |
the search to specific fields using \fB\-\-name\fP or \fB\-\-summary\fP |
| 45 |
options. Matching is case\-insensitive and globs are supported. |
| 46 |
.SH OPTIONS |
| 47 |
.INDENT 0.0 |
| 48 |
.TP |
| 49 |
.B \fB\-\-all\fP |
| 50 |
.nf |
| 51 |
Search patterns also inside \fIDescription\fP and \fIURL\fP fields. |
| 52 |
By applying this option the search lists packages that match at least one of the keys (OR operation). |
| 53 |
Cannot be used with \fB\-\-name\fP or \fB\-\-summary\fP\&. |
| 54 |
.fi |
| 55 |
.sp |
| 56 |
.TP |
| 57 |
.B \fB\-\-name\fP |
| 58 |
.nf |
| 59 |
Limit the search to the \fIName\fP field only. |
| 60 |
Cannot be used with \fB\-\-all\fP or \fB\-\-summary\fP\&. |
| 61 |
.fi |
| 62 |
.sp |
| 63 |
.TP |
| 64 |
.B \fB\-\-summary\fP |
| 65 |
.nf |
| 66 |
Limit the search to the \fISummary\fP field only. |
| 67 |
Cannot be used with \fB\-\-all\fP or \fB\-\-name\fP\&. |
| 68 |
.fi |
| 69 |
.sp |
| 70 |
.TP |
| 71 |
.B \fB\-\-showduplicates\fP |
| 72 |
.nf |
| 73 |
Show all versions of packages, not only the latest ones. |
| 74 |
.fi |
| 75 |
.sp |
| 76 |
.UNINDENT |
| 77 |
.SH EXAMPLES |
| 78 |
.INDENT 0.0 |
| 79 |
.TP |
| 80 |
.B \fBdnf5 search kernel\fP |
| 81 |
.nf |
| 82 |
Search \fBkernel\fP keyword inside \fIName\fP or \fISummary\fP package metadata fields. |
| 83 |
.fi |
| 84 |
.sp |
| 85 |
.TP |
| 86 |
.B \fBdnf5 search rpm dbus\fP |
| 87 |
.nf |
| 88 |
Search packages having both \fBrpm\fP and \fBdbus\fP keywords inside \fIName\fP or \fISummary\fP fields. |
| 89 |
.fi |
| 90 |
.sp |
| 91 |
.TP |
| 92 |
.B \fBdnf5 search \-\-all fedora gnome kde\fP |
| 93 |
.nf |
| 94 |
Search packages having any of given keywords in \fIName\fP, \fISummary\fP, \fIDescription\fP or \fIURL\fP fields. |
| 95 |
.fi |
| 96 |
.sp |
| 97 |
.TP |
| 98 |
.B \fBdnf5 search \-\-name firefox\fP |
| 99 |
.nf |
| 100 |
Search \fBfirefox\fP keyword only in the \fIName\fP field of packages. |
| 101 |
.fi |
| 102 |
.sp |
| 103 |
.TP |
| 104 |
.B \fBdnf5 search \-\-summary browser\fP |
| 105 |
.nf |
| 106 |
Search \fBbrowser\fP keyword only in the \fISummary\fP field of packages. |
| 107 |
.fi |
| 108 |
.sp |
| 109 |
.UNINDENT |
| 110 |
.SH SEE ALSO |
| 111 |
.INDENT 0.0 |
| 112 |
.INDENT 3.5 |
| 113 |
.nf |
| 114 |
\fBdnf5\-specs(7)\fP, Patterns specification \%<#\:specs-misc-ref-label> |
| 115 |
.fi |
| 116 |
.sp |
| 117 |
.UNINDENT |
| 118 |
.UNINDENT |
| 119 |
.SH Author |
| 120 |
See AUTHORS.md in dnf5 source distribution. |
| 121 |
.SH Copyright |
| 122 |
Contributors to the dnf5 project. |
| 123 |
.\" End of generated man page. |