DOKK / manpages / debian 12 / dnf-plugins-core / dnf-builddep.8.en
DNF-BUILDDEP(8) dnf-plugins-core DNF-BUILDDEP(8)

dnf-builddep - DNF builddep Plugin

Install whatever is needed to build the given .src.rpm, .nosrc.rpm or .spec file.

WARNING:

Build dependencies in a package (i.e. src.rpm) might be different than you would expect because they were evaluated according macros set on the package build host.


dnf builddep <package>...

<package>
Either path to .src.rpm, .nosrc.rpm or .spec file or package available in a repository.

All general DNF options are accepted, see Options in dnf(8) for details.

Show this help.
Define the RPM macro named macro to the value expr when parsing spec files. Does not apply for source rpm files.
Treat arguments as .spec files.
Treat arguments as source rpm files.
Skip build dependencies not available in repositories. All available build dependencies will be installed.

Note that builddep command does not honor the –skip-broken option, so there is no way to skip uninstallable packages (e.g. with broken dependencies).

Install the needed build requirements, defined in the foobar.spec file.
Install the needed build requirements, defined in the spec file when filename ends with something different than .spec.
Install the needed build requirements, defined in the foobar-1.0-1.src.rpm file.
Look up foobar-1.0-1 in enabled repositories and install build requirements for its source rpm.
Install the needed build requirements for the python27 SCL version of python-foobar.

See AUTHORS in your Core DNF Plugins distribution

2023, Red Hat, Licensed under GPLv2+

January 22, 2023 4.3.1