Debian Codegraph @

upstream/mageia-cauldron/man8/dnf5-search.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-SEARCH" "8" "May 10, 2026" "" "dnf5"
31 .SH NAME
32 dnf5-search \- Search Command
33 .SH SYNOPSIS
34 .sp
35 \fBdnf5 search [options] <pattern>...\fP
36 .SH DESCRIPTION
37 .sp
38 The \fBsearch\fP command in \fBDNF5\fP is used for searching packages by matching
39 given keywords from the user against various metadata.
40 .sp
41 By default the command searches for all requested keys (AND operation) in
42 \fIName\fP or \fISummary\fP fields from the RPM package metadata. Users can limit
43 the search to specific fields using \fB\-\-name\fP or \fB\-\-summary\fP
44 options. Matching is case\-insensitive and globs are supported.
45 .SH OPTIONS
46 .INDENT 0.0
47 .TP
48 .B \fB\-\-all\fP
49 .nf
50 Search patterns also inside \fIDescription\fP and \fIURL\fP fields.
51 By applying this option the search lists packages that match at least one of the keys (OR operation).
52 Cannot be used with \fB\-\-name\fP or \fB\-\-summary\fP\&.
53 .fi
54 .sp
55 .TP
56 .B \fB\-\-name\fP
57 .nf
58 Limit the search to the \fIName\fP field only.
59 Cannot be used with \fB\-\-all\fP or \fB\-\-summary\fP\&.
60 .fi
61 .sp
62 .TP
63 .B \fB\-\-summary\fP
64 .nf
65 Limit the search to the \fISummary\fP field only.
66 Cannot be used with \fB\-\-all\fP or \fB\-\-name\fP\&.
67 .fi
68 .sp
69 .TP
70 .B \fB\-\-showduplicates\fP
71 .nf
72 Show all versions of packages, not only the latest ones.
73 .fi
74 .sp
75 .UNINDENT
76 .SH EXAMPLES
77 .INDENT 0.0
78 .TP
79 .B \fBdnf5 search kernel\fP
80 .nf
81 Search \fBkernel\fP keyword inside \fIName\fP or \fISummary\fP package metadata fields.
82 .fi
83 .sp
84 .TP
85 .B \fBdnf5 search rpm dbus\fP
86 .nf
87 Search packages having both \fBrpm\fP and \fBdbus\fP keywords inside \fIName\fP or \fISummary\fP fields.
88 .fi
89 .sp
90 .TP
91 .B \fBdnf5 search \-\-all fedora gnome kde\fP
92 .nf
93 Search packages having any of given keywords in \fIName\fP, \fISummary\fP, \fIDescription\fP or \fIURL\fP fields.
94 .fi
95 .sp
96 .TP
97 .B \fBdnf5 search \-\-name firefox\fP
98 .nf
99 Search \fBfirefox\fP keyword only in the \fIName\fP field of packages.
100 .fi
101 .sp
102 .TP
103 .B \fBdnf5 search \-\-summary browser\fP
104 .nf
105 Search \fBbrowser\fP keyword only in the \fISummary\fP field of packages.
106 .fi
107 .sp
108 .UNINDENT
109 .SH SEE ALSO
110 .INDENT 0.0
111 .INDENT 3.5
112 .nf
113 \fBdnf5\-specs(7)\fP, \fI\%Patterns specification\fP
114 .fi
115 .sp
116 .UNINDENT
117 .UNINDENT
118 .SH AUTHOR
119 See AUTHORS.md in dnf5 source distribution.
120 .SH COPYRIGHT
121 Contributors to the dnf5 project.
122 .\" Generated by docutils manpage writer.
123 .