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.rpm or .spec file, 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 .spec files.
  • --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 the builddep command does not honor the –skip-broken option, 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 the foobar.spec file.
  • 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 the foobar-1.0-1.src.rpm file.
  • dnf builddep foobar-1.0-1 β€” look up foobar-1.0-1 in 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 the python27 SCL version of python-foobar.

πŸ’œ Author πŸ’œ

see AUTHORS in your Core DNF Plugins distribution 🫢

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