1DNF5-BUILDDEP(8) dnf5 DNF5-BUILDDEP(8)
2
3
4
6 dnf5-builddep - Builddep Command
7
9 dnf5 builddep [options] [<package>...]
10
12 Install missing dependencies for building an RPM package.
13
14 WARNING:
15 Build dependencies in a source package (i.e. src.rpm) might be dif‐
16 ferent than you would expect because dependencies were evaluated ac‐
17 cording macros set on the package build host.
18
20 --allowerasing
21 Allow erasing of installed packages to resolve dependencies res‐
22 olution problems.
23
24 --skip-unavailable
25 Allow skipping build dependencies not available in repositories.
26 All available build dependencies will be installed.
27
28 -D "macro expr", --define="macro expr"
29 Define a rpm macro. Set the value "expr" to the macro "macro"
30 when parsing spec files. Does not apply for source rpm files.
31
33 <package>
34 Either path to .src.rpm, .nosrc.rpm or .spec file or package
35 available in a repository.
36
38 dnf builddep foobar.spec
39 Install the needed build requirements, defined in the foo‐
40 bar.spec file.
41
42 dnf builddep foobar-1.0-1.src.rpm
43 Install the needed build requirements, defined in the foo‐
44 bar-1.0-1.src.rpm file.
45
46 dnf builddep foobar-1.0-1
47 Look up foobar-1.0-1 in enabled repositories and install build
48 requirements for its source rpm.
49
50 dnf builddep -D 'scl python27' python-foobar.spec
51 Install the needed build requirements for the python27 SCL ver‐
52 sion of python-foobar.
53
55 See AUTHORS.md in dnf5 source distribution.
56
58 Contributors to the dnf5 project.
59
60
61
62
63 Nov 09, 2023 DNF5-BUILDDEP(8)