Debian Codegraph @

upstream/opensuse-tumbleweed/man8/dnf5-builddep.8

raw
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-BUILDDEP" "8" "Feb 19, 2026" "" "dnf5"
32 .SH NAME
33 dnf5-builddep \- Builddep Command
34 .SH SYNOPSIS
35 .sp
36 \fBdnf5 builddep [options] [<package>...]\fP
37 .SH DESCRIPTION
38 .sp
39 Install missing dependencies for building an RPM package.
40 .sp
41 \fBWarning:\fP
42 .INDENT 0.0
43 .INDENT 3.5
44 Build dependencies in a source package (i.e. src.rpm) might be different
45 than you would expect because dependencies were evaluated according macros
46 set on the package build host.
47 .UNINDENT
48 .UNINDENT
49 .SH OPTIONS
50 .INDENT 0.0
51 .TP
52 .B \fB\-D \(dqmacro expr\(dq, \-\-define=\(dqmacro expr\(dq\fP
53 .nf
54 Define a rpm macro. Set the value \(dqexpr\(dq to the macro \(dqmacro\(dq when parsing spec files. Does not apply for source rpm files.
55 .fi
56 .sp
57 .TP
58 .B \fB\-\-with=OPTION, \-\-without=OPTION\fP
59 .nf
60 Enable or disable conditional build OPTION when parsing spec files. Does not apply for source rpm files.
61 .fi
62 .sp
63 .TP
64 .B \fB\-\-allowerasing\fP
65 .nf
66 Allow removing of installed packages to resolve any potential dependency problems.
67 .fi
68 .sp
69 .TP
70 .B \fB\-\-skip\-unavailable\fP
71 .nf
72 Allow skipping packages that are not possible to downgrade. All remaining packages will be downgraded.
73 .fi
74 .sp
75 .TP
76 .B \fB\-\-allow\-downgrade\fP
77 .nf
78 Enable downgrade of dependencies when resolving the requested operation.
79 .fi
80 .sp
81 .TP
82 .B \fB\-\-no\-allow\-downgrade\fP
83 .nf
84 Disable downgrade of dependencies when resolving the requested operation.
85 .fi
86 .sp
87 .UNINDENT
88 .INDENT 0.0
89 .TP
90 .B \fB\-\-from\-repo=REPO_ID,...\fP
91 .nf
92 Packages (or their provides) explicitly specified on the command line will only be looked up in the specified repositories.
93 These repositories are automatically enabled.
94 Repository enabling and disabling still applies. Dependencies of these packages will be resolved from any enabled repository.
95 .fi
96 .sp
97 .UNINDENT
98 .INDENT 0.0
99 .TP
100 .B \fB\-\-from\-vendor=VENDOR,...\fP
101 .nf
102 List of vendors separated by commas or spaces. Globs are supported (e.g., \fB\-\-from\-vendor=\(aqFedora\e project, vendorA, vendorB*, vendorC\(aq\fP).
103 Packages (or their provides) explicitly specified on the command line will only be looked up from the specified vendors.
104 The vendor change check is \fBbypassed\fP for these packages.
105 The vendor is ignored or vendor change policies (if \fBallow_vendor_change=0\fP) will still be used for packages that satisfy dependencies.
106 .fi
107 .sp
108 .UNINDENT
109 .INDENT 0.0
110 .TP
111 .B \fB\-\-spec\fP
112 .nf
113 Treat command line arguments following this option as spec files.
114 .fi
115 .sp
116 .TP
117 .B \fB\-\-srpm\fP
118 .nf
119 Treat command line arguments following this option as source rpms.
120 .fi
121 .sp
122 .UNINDENT
123 .INDENT 0.0
124 .TP
125 .B \fB\-\-offline\fP
126 .nf
127 Store the transaction to be performed offline. See offline command \%<#\:offline-command-ref-label>, \fBdnf5\-offline(8)\fP\&.
128 .fi
129 .sp
130 .TP
131 .B \fB\-\-store=PATH\fP
132 .nf
133 Store the current transaction in a directory at the specified \fBPATH\fP instead of running it.
134 The stored transaction can be performed by the replay command \%<#\:replay-command-ref-label>, \fBdnf5\-replay(8)\fP\&.
135 Note that repository ids in the stored transaction are mangled to \fB@stored_transaction(repo_id)\fP this is required
136 because during replaying the stored repositories are recreated and they might collide with already present repositories
137 (this doesn\(aqt apply to the special @System repository).
138 .fi
139 .sp
140 .UNINDENT
141 .SH ARGUMENTS
142 .INDENT 0.0
143 .TP
144 .B \fB<package>\fP
145 .nf
146 Either path to .src.rpm, .nosrc.rpm or .spec file or package available in a repository.
147 .fi
148 .sp
149 .UNINDENT
150 .SH EXAMPLES
151 .INDENT 0.0
152 .TP
153 .B \fBdnf builddep foobar.spec\fP
154 .nf
155 Install the needed build requirements, defined in the foobar.spec file.
156 .fi
157 .sp
158 .TP
159 .B \fBdnf builddep foobar\-1.0\-1.src.rpm\fP
160 .nf
161 Install the needed build requirements, defined in the foobar\-1.0\-1.src.rpm file.
162 .fi
163 .sp
164 .TP
165 .B \fBdnf builddep foobar\-1.0\-1\fP
166 .nf
167 Look up foobar\-1.0\-1 in enabled repositories and install build requirements for its source rpm.
168 .fi
169 .sp
170 .TP
171 .B \fBdnf builddep \-D \(aqscl python27\(aq python\-foobar.spec\fP
172 .nf
173 Install the needed build requirements for the python27 SCL version of python\-foobar.
174 .fi
175 .sp
176 .TP
177 .B \fBdnf builddep \-\-without=selinux foobar.spec\fP
178 .nf
179 Install the needed build requirements except those for optional SELinux support.
180 .fi
181 .sp
182 .UNINDENT
183 .SH Author
184 See AUTHORS.md in dnf5 source distribution.
185 .SH Copyright
186 Contributors to the dnf5 project.
187 .\" End of generated man page.