LinuxCommandLibrary

dnf-builddep

install build dependencies for RPM packages

TLDR

Install build dependencies for a spec file

$ dnf builddep [path/to/specification.spec]
copy
Install dependencies, ignoring unavailable
$ dnf builddep --skip-unavailable [path/to/specification.spec]
copy
Define RPM macro
$ dnf builddep -D '[expression]'
copy
Specify .spec file path
$ dnf builddep --spec [argument]
copy
Specify .rpm file path
$ dnf builddep --srpm [argument]
copy

SYNOPSIS

dnf builddep [options] package

DESCRIPTION

dnf builddep installs all dependencies required to build a package from its spec file or source RPM. Part of dnf-plugins-core.
Essential for building RPM packages from source.

PARAMETERS

--skip-unavailable

Ignore unavailable packages
-D, --define macro
Define RPM macro
--spec file
Use spec file
--srpm file
Use source RPM
--help-cmd
Display help

CAVEATS

Requires dnf-plugins-core. Build dependencies may include many packages. Root privileges typically required.

SEE ALSO

dnf(8), rpmbuild(8), mock(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community