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.rpm or .spec file, 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 .spec files.
  • --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 the builddep command does not honor the --skip-broken option, 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 the foobar.spec file. 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 --spec is doing the heavy lifting here πŸ’ͺ
  • 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. lowkey my fave πŸ‘‘
  • dnf builddep -D 'scl python27' python-foobar.spec β€” install the needed build requirements for the python27 SCL version of python-foobar. macro define moment 🧚

⭐ AUTHOR ⭐

See AUTHORS in your Core DNF Plugins distribution 🫑

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