DNF4-BUILDDEP(8)
β¨ DNF4-BUILDDEP(8) β¨
okay so bestie, this is the dnf4-builddep page from your dnf-plugins-core era β the DNF builddep plugin, and honestly? it's giving "let me get your build deps together so you don't have to" π
πΈ NAME πΈ
dnf4-builddep β the DNF builddep Plugin, periodt.
It installs literally whatever is needed to build the given .src.rpm, .nosrc.rpm or .spec file. Obsessed.
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. π like no cap, forewarned is forearmed.
π 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. you pick, main character energy either way π«Ά
π OPTIONS π
All general DNF options are accepted, see Options in dnf(8) for details. (iykyk)
--help-cmdβ show this help. that's it. that's the whole vibe β¨-D <macro expr>,--define <macro expr>β define the RPM macro named macro to the value expr when parsing spec files. heads up: it does not apply for source rpm files π--specβ treat arguments as.specfiles.--srpmβ treat arguments as source rpm files.--skip-unavailableβ skip build dependencies that aren't available in repositories. all the available build dependencies will still be installed π―
β οΈ note that thebuilddepcommand does not honor the--skip-brokenoption, so there is no way to skip uninstallable packages (e.g. with broken dependencies). yeah. that's just how it is, bestie π
π₯ EXAMPLES π₯
okay these are iconic, let's go one by one:
dnf builddep foobar.specβ install the needed build requirements, defined in thefoobar.specfile. classic. slay.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. the--specis doing the heavy lifting here πͺ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. lowkey my fave πdnf builddep -D 'scl python27' python-foobar.specβ install the needed build requirements for thepython27SCL version ofpython-foobar. macro define moment π§
β AUTHOR β
See AUTHORS in your Core DNF Plugins distribution π«‘
π COPYRIGHT π
2026, Red Hat, Licensed under GPLv2+
and that's the whole page, bestie π β brought to you by version 4.7.0, dated Aug 10, 2026, dnf-plugins-core, GPLv2+ and Red Hat's 2026 copyright. go build something iconic β¨π
π
π¦ where this page comes from
- centos-stream 10: dnf-plugins-core 4.7.0-12.el10 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms