id = "rpm"
name = "RPM"
homepage = "https://rpm.org/"
description = "The RPM Package Manager."
executables = ["rpm", "rpmbuild"]
[dotfiles]
paths = ["~/.config/rpm/macros", "~/.rpmmacros"]
exclude = []
secret = []
side_effect = false
[commands]
format = 1
label = "Query packages"
description = "Query installed packages or package files with rpm -q. Installing, erasing, verifying and rpmbuild are left out."
quality = "ai-draft"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true }
[[commands.source]]
id = "man"
kind = "manual"
url = "https://man.archlinux.org/man/rpm.8"
revision = "RPM 6.0.1"
evidence = """
rpm {-q|--query} [select-options] [query-options] [PACKAGE_FILE ...] [PACKAGE_NAME ...]
-q, --query
Query package files or installed package(s).
--qf QUERYFMT, --queryformat QUERYFMT
Output format of each queried package
-a, --all [SELECTOR ...]
Query all installed packages.
-f, --file FILE
Query package owning installed FILE.
-p, --package PACKAGE_FILE
Query an (uninstalled) package PACKAGE_FILE.
-i, --info
Display package information, including name, version, and description.
-l, --list
List files in package.
-R, --requires
List capabilities on which this package depends.
-c, --configfiles
Only include configuration files (implies -l).
-d, --docfiles
Only include documentation files (implies -l).
"""
[[commands.field]]
id = "query"
label = "Query mode"
fixed = ["-q"]
sources = ["man"]
[[commands.field]]
id = "names"
label = "Package names"
description = "Installed package names; leave empty when using All installed."
type = "string"
position = 0
multiple = true
sources = ["man"]
[[commands.field]]
id = "all"
label = "All installed packages"
type = "boolean"
option = ["--all", "-a"]
sources = ["man"]
[[commands.field]]
id = "file"
label = "Owner of installed file"
type = "path"
option = ["--file", "-f"]
path = { kind = "file", role = "input" }
sources = ["man"]
[[commands.field]]
id = "package"
label = "Package file"
description = "Query an uninstalled .rpm file."
type = "path"
option = ["--package", "-p"]
path = { kind = "file", role = "input" }
sources = ["man"]
[[commands.field]]
id = "info"
label = "Show information"
type = "boolean"
option = ["--info", "-i"]
sources = ["man"]
[[commands.field]]
id = "list"
label = "List files"
type = "boolean"
option = ["--list", "-l"]
sources = ["man"]
[[commands.field]]
id = "requires"
label = "List dependencies"
type = "boolean"
option = ["--requires", "-R"]
sources = ["man"]
[[commands.field]]
id = "configfiles"
label = "Config files only"
type = "boolean"
option = ["--configfiles", "-c"]
sources = ["man"]
[[commands.field]]
id = "docfiles"
label = "Doc files only"
type = "boolean"
option = ["--docfiles", "-d"]
sources = ["man"]
[[commands.field]]
id = "queryformat"
label = "Output format"
description = "A queryformat string, for example '%{NAME}-%{VERSION}\\n'."
type = "string"
option = ["--queryformat", "--qf"]
sources = ["man"]
[[commands.task]]
id = "info"
label = "Package information"
set = { info = [true] }
fields = ["query", "names", "info"]
required = ["names"]
[[commands.task]]
id = "files"
label = "List package files"
set = { list = [true] }
fields = ["query", "names", "list", "configfiles", "docfiles"]
required = ["names"]
[[commands.task]]
id = "owner"
label = "Which package owns a file"
fields = ["query", "file"]
required = ["file"]
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["query", "names", "all", "file", "package", "info", "list", "requires"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["configfiles", "docfiles", "queryformat"]