Debian Codegraph @

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