.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "DNF5-BUILDDEP" "8" "Apr 23, 2025" "" "dnf5" .SH NAME dnf5-builddep \- Builddep Command .SH SYNOPSIS .sp \fBdnf5 builddep [options] [...]\fP .SH DESCRIPTION .sp Install missing dependencies for building an RPM package. .sp \fBWARNING:\fP .INDENT 0.0 .INDENT 3.5 Build dependencies in a source package (i.e. src.rpm) might be different than you would expect because dependencies were evaluated according macros set on the package build host. .UNINDENT .UNINDENT .SH OPTIONS .INDENT 0.0 .TP .B \fB\-D \(dqmacro expr\(dq, \-\-define=\(dqmacro expr\(dq\fP .nf 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. .fi .sp .TP .B \fB\-\-with=OPTION, \-\-without=OPTION\fP .nf Enable or disable conditional build OPTION when parsing spec files. Does not apply for source rpm files. .fi .sp .TP .B \fB\-\-allowerasing\fP .nf Allow removing of installed packages to resolve any potential dependency problems. .fi .sp .TP .B \fB\-\-skip\-unavailable\fP .nf Allow skipping packages that are not possible to downgrade. All remaining packages will be downgraded. .fi .sp .TP .B \fB\-\-allow\-downgrade\fP .nf Enable downgrade of dependencies when resolving the requested operation. .fi .sp .TP .B \fB\-\-no\-allow\-downgrade\fP .nf Disable downgrade of dependencies when resolving the requested operation. .fi .sp .TP .B \fB\-\-spec\fP .nf Treat command line arguments following this option as spec files. .fi .sp .TP .B \fB\-\-srpm\fP .nf Treat command line arguments following this option as source rpms. .fi .sp .UNINDENT .SH ARGUMENTS .INDENT 0.0 .TP .B \fB\fP .nf Either path to .src.rpm, .nosrc.rpm or .spec file or package available in a repository. .fi .sp .UNINDENT .SH EXAMPLES .INDENT 0.0 .TP .B \fBdnf builddep foobar.spec\fP .nf Install the needed build requirements, defined in the foobar.spec file. .fi .sp .TP .B \fBdnf builddep foobar\-1.0\-1.src.rpm\fP .nf Install the needed build requirements, defined in the foobar\-1.0\-1.src.rpm file. .fi .sp .TP .B \fBdnf builddep foobar\-1.0\-1\fP .nf Look up foobar\-1.0\-1 in enabled repositories and install build requirements for its source rpm. .fi .sp .TP .B \fBdnf builddep \-D \(aqscl python27\(aq python\-foobar.spec\fP .nf Install the needed build requirements for the python27 SCL version of python\-foobar. .fi .sp .TP .B \fBdnf builddep \-\-without=selinux foobar.spec\fP .nf Install the needed build requirements except those for optional SELinux support. .fi .sp .UNINDENT .SH AUTHOR See AUTHORS.md in dnf5 source distribution. .SH COPYRIGHT Contributors to the dnf5 project. .\" Generated by docutils manpage writer. .