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