Linux command
dnf-builddep 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
dnf builddep [path/to/specification.spec]
Example
dnf builddep [path/to/package.src.rpm]
Example
dnf builddep --skip-unavailable [path/to/specification.spec]
Define RPM macro
dnf builddep -D '[macro expression]' [path/to/specification.spec]
Example
dnf builddep [package_name]
Example
dnf builddep -y [path/to/specification.spec]
说明
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.
参数
- --skip-unavailable
- Skip build dependencies not available in repositories.
- -D, --define _macro_
- Define RPM macro when parsing spec files (not applied to SRPMs).
- --spec
- Treat arguments as .spec files.
- --srpm
- Treat arguments as source RPM files.
- --nobest
- Do not limit packages to the best available versions.
- -y, --assumeyes
- Automatically answer yes for all questions.
- --help-cmd
- Display help for this command.
FAQ
What is the dnf-builddep command used for?
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.
How do I run a basic dnf-builddep example?
Run `dnf builddep [path/to/specification.spec]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --skip-unavailable do in dnf-builddep?
Skip build dependencies not available in repositories.