Installation • Command-line completion • Man documentation • Usage • CI Status • Contributing • License
spec-builddep
is a simple utility for installing dependencies for building an RPM package (yum-builddep
drop-in replacement).
To build the spec-builddep
from scratch, make sure you have a working Go 1.20+ workspace (instructions), then:
go install github.com/essentialkaos/spec-builddep@latest
You can download prebuilt binaries for Linux from EK Apps Repository:
bash <(curl -fsSL https://apps.kaos.st/get) spec-builddep
sudo yum install -y https://pkgs.kaos.st/kaos-repo-latest.el$(grep 'CPE_NAME' /etc/os-release | tr -d '"' | cut -d':' -f5).noarch.rpm
sudo yum install spec-builddep
You can generate completion for bash
, zsh
or fish
shell.
Bash:
sudo spec-builddep --completion=bash 1> /etc/bash_completion.d/spec-builddep
ZSH:
sudo spec-builddep --completion=zsh 1> /usr/share/zsh/site-functions/spec-builddep
Fish:
sudo spec-builddep --completion=fish 1> /usr/share/fish/vendor_completions.d/spec-builddep.fish
You can generate man page using next command:
spec-builddep --generate-man | sudo gzip > /usr/share/man/man1/spec-builddep.1.gz
Usage: spec-builddep {options} spec-file
Options
--list, -L List required build dependencies
--actual, -A Install the latest versions of all packages
--clean, -C Clean package manager cache before install
--define, -D macro Define a macro for spec file parsing (mergeble)
--exclude, -x package Exclude packages by name or glob (mergeble)
--enablerepo, -ER repo Enable additional repositories (mergeble)
--disablerepo, -DR repo Disable repositories (mergeble)
--no-color, -nc Disable colors in output
--help, -h Show this help message
--version, -v Show version
Examples
spec-builddep -L nginx.spec
List all required build dependencies from nginx spec
spec-builddep nginx.spec -ER epel-testing -ER kaos-testing
Install packages required for building nginx package
spec-builddep --clean --actual nginx.spec
Install the latest version of packages required for building nginx package
Branch | Status |
---|---|
master |
|
develop |
Before contributing to this project please read our Contributing Guidelines.