From f81d88bf49bb379f39a4d07c374363976d28857d Mon Sep 17 00:00:00 2001 From: Kristopher Date: Tue, 8 Jul 2025 20:16:14 -0700 Subject: [PATCH] dnf builddep: add page (#17161) --- pages/linux/dnf-builddep.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pages/linux/dnf-builddep.md diff --git a/pages/linux/dnf-builddep.md b/pages/linux/dnf-builddep.md new file mode 100644 index 0000000000..15779f1604 --- /dev/null +++ b/pages/linux/dnf-builddep.md @@ -0,0 +1,30 @@ +# dnf builddep + +> Install dependencies to build a given package. +> Not default to `dnf` but supported via `dnf-plugins-core`. +> See also: `dnf`. +> More information: . + +- Install dependencies for a given package: + +`dnf builddep {{path/to/specification.spec}}` + +- Install dependencies for a given package but ignore unavailable: + +`dnf builddep --skip-unavailable {{path/to/specification.spec}}` + +- Define the RPM macro to a given expression: + +`dnf builddep {{[-D|--define]}} '{{expression}}'` + +- Define an argument for a `.spec` file path: + +`dnf builddep --spec {{argument}}` + +- Define an argument for a `.rpm` file path: + +`dnf builddep --srpm {{argument}}` + +- Display help: + +`dnf builddep --help-cmd`