1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 23:35:25 +02:00

dnf builddep: add page (#17161)

This commit is contained in:
Kristopher 2025-07-08 20:16:14 -07:00 committed by GitHub
parent cefbc950da
commit f81d88bf49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: <https://dnf-plugins-core.readthedocs.io/en/latest/builddep.html>.
- 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`