DNF4-BUILDDEP(8)
β¨ NAME β¨</p>
dnf4-builddep β the DNF builddep Plugin π
okay bestie, so this one installs literally whatever is needed to build the .src.rpm, .nosrc.rpm or .spec file you hand it. that's it, that's the whole vibe π«Ά
β οΈ Warning, and babe listen to me: build dependencies in a package (i.e. a src.rpm) might be different than you would expect, because they were evaluated according to macros set on the package build host. so likeβ¦ don't come for the plugin if it pulled something unhinged, that's just how the build host rolled π
πΈ SYNOPSIS πΈ
dnf builddep <package>...
π¦ ARGUMENTS π¦
<package>β either a path to a.src.rpm,.nosrc.rpmor.specfile, or a package that's available in a repository. either/or, she contains multitudes β¨
π OPTIONS π
all the general DNF options are accepted, see Options in dnf(8) for the deets. now the builddep-specific girlies:
--help-cmdβ shows this help. that's it, that's her whole job π-D <macro expr>,--define <macro expr>β define the RPM macro named macro to the value expr when parsing spec files. Does not apply for source rpm files. (srpm girlies, this one's not for you π)--specβ treat arguments as.specfiles.--srpmβ treat arguments as source rpm files.--skip-unavailableβ skip build dependencies that are not available in repositories. all the available build dependencies will still be installed. no cap π§
π heads up: note that thebuilddepcommand does not honor theβskip-brokenoption, so there is no way to skip uninstallable packages (e.g. with broken dependencies). it's giving "no escape", not me being dramatic, that's literally what it says π
β EXAMPLES β
bestie these are the ones you'll actually use, fr fr:
dnf builddep foobar.specβ install the needed build requirements, defined in thefoobar.specfile.dnf builddep --spec foobar.spec.inβ install the needed build requirements, defined in the spec file when the filename ends with something different than.spec. (iconic workaround tbh β¨)dnf builddep foobar-1.0-1.src.rpmβ install the needed build requirements, defined in thefoobar-1.0-1.src.rpmfile.dnf builddep foobar-1.0-1β look upfoobar-1.0-1in enabled repositories and install build requirements for its source rpm. she went and found it πdnf builddep -D 'scl python27' python-foobar.specβ install the needed build requirements for thepython27SCL version ofpython-foobar.
π Author π
see AUTHORS in your Core DNF Plugins distribution π«Ά
π Copyright π
2014, Red Hat, Licensed under GPLv2+ β yeah she's been around since 2014 and she's still serving π
annnd that's the whole page, bestie!! this was dnf4-builddep(8) from dnf-plugins-core, version 4.10.1, dated Sep 27, 2025 π go install your build deps, you absolutely ate π₯π
π¦ where this page comes from
- ubuntu resolute: dnf-plugins-core 4.10.1-5 Β· GPL-2.0-or-later
- ubuntu stonking: dnf-plugins-core 4.10.1-5 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms