XBPS-D(5)
π xbps.d β XBPS configuration directory (XBPS-D(5)) π
okay so this is the File Formats Manual entry for xbps.d, aka XBPS-D(5) β welcome to the config zone, bestie β¨
πΈ NAME πΈ
xbps.d β XBPS configuration directory
π SYNOPSIS π
these are the paths, no cap:
/etc/xbps.d/*.conf
/usr/share/xbps.d/*.conf
π DESCRIPTION π
The xbps.d configuration directory sets properties for the XBPS package manager. The configuration directory, by default set to /etc/xbps.d, overrides settings from files available in the system configuration directory, by default set to /usr/share/xbps.d.
Files in the configuration directory have preference over files in the system configuration directory.
Only files with the .conf extension will be processed in alphabetical order.
The configuration files can set various keywords, using the syntax key=value. No whitespace between the key and its value is allowed, nor trailing whitespaces after its value. Multiple entries are permitted for the ignorepkg, include, noextract, preserve, repository and virtualpkg keywords, but each entry must specify only one value.
β οΈ bestie, read this twice: no space around the =, no sneaky trailing spaces. the parser is not playing. periodt.
π KEYWORDS π
each keyword is its own little key=value moment β hereβs the whole roster π
π§ architecture=string
Overrides the native machine architecture, as reported by uname(2).
π₯ bestmatching=true|false
When this keyword is enabled, a package with the greatest version available in all registered repositories will be chosen. This will be applied to dependencies as well.
ποΈ cachedir=path
Sets the default cache directory to store downloaded binary packages from remote repositories, as well as its signatures. If _path_ starts with / itβs an absolute path, otherwise it will be relative to rootdir.
β οΈ ignorepkg=pkgname
Declares an ignored package. If a package depends on an ignored package the dependency is always satisfied, without installing the ignored package. It does not disable checks for introduced incompatibilities like shared library dependencies.
π
noextract=pattern
Skip extraction of matching files. Patterns starting with an exclamation mark negate the previous match, a single backslash can be used to escape the exclamation mark.
In the following example all files matching the first pattern will not be extracted, but files that also match the second pattern will still be extracted.
noextract=/usr/bin/f*
noextract=!/usr/bin/foo
πͺ include=path/file.conf
Imports settings from the specified configuration file. NOTE: only one level of nesting is allowed.
π‘οΈ preserve=path
If set ignores modifications to the specified files, while unpacking packages. Absolute path to a file and file globbing are supported, example:
preserve=/usr/bin/foo
preserve=/etc/foo/*.conf
πΎ keepconf=true|false
If set to false (default), xbps will overwrite configuration files that have not been changed since installation with their new version (if available).
If set to true, xbps will not overwrite configuration files that have not been changed since installation. Instead, the new version (if available) is saved next to the configuration file as <name>.new-<version>.
π¦ repository=url
Declares a package repository. The _url_ argument accepts local and remote repositories. A complete url or absolute path to the directory that stores the <arch>-repodata archive is expected. Note that remote repositories must be signed using xbps-rindex(1), example:
repository=https://repo-default.voidlinux.org/current
repository=/hostdir/binpkgs
π³ rootdir=path
Sets the default root directory.
π staging=true|false
Enables or disables the use of staged packages in remote repositories.
π syslog=true|false
Enables or disables syslog logging. Enabled by default.
π virtualpkg=[vpkgname|vpkgver]:pkgname
Declares a virtual package. A virtual package declaration is composed by two components delimited by a colon, example:
virtualpkg=cron-daemon:dcron Any request to the cron-daemon virtual
package will be resolved to the dcron
real package.
The first component expects a virtual package name and optionally its version component. The second component expects a package name to match the real package.
π ENVIRONMENT π
XBPS_ARCHβ Overridesuname(2)machine result with this value. Useful to install packages with a fake architecture.XBPS_TARGET_ARCHβ Sets the target architecture to this value. This variable differs fromXBPS_ARCHin that it allows you to install packages partially, because configuration phase is skipped (the target binaries might not be compatible with the native architecture).
ποΈ FILES ποΈ
/etc/xbps.dβ Default configuration directory./usr/share/xbps.dβ Default system configuration directory./var/db/xbps/.<pkgname>-files.plistβ Package files metadata./var/db/xbps/pkgdb-0.38.plistβ Default package database (0.38 format). Keeps track of installed packages and properties./var/cache/xbpsβ Default cache directory to store downloaded binary packages./usr/share/xbps.d/xbps.confβ Annotated sample configuration file.
π SEE ALSO π
xbps-alternatives(1), xbps-checkvers(1), xbps-create(1), xbps-dgraph(1), xbps-digest(1), xbps-fbulk(1), xbps-fetch(1), xbps-install(1), xbps-pkgdb(1), xbps-query(1), xbps-reconfigure(1), xbps-remove(1), xbps-rindex(1), xbps-uchroot(1), xbps-uunshare(1)
π«Ά AUTHORS π«Ά
the icon behind this is Juan Romero Pardines <xtraeme@gmail.com> π«Ά
π BUGS π
Probably, but I try to make this not happen. Use it under your own responsibility and enjoy your life.
Report bugs at https://github.com/void-linux/xbps/issues
okay bye bestie β this page is from Debian, dated Feb 9, 2023, and itβs literally XBPS-D(5) πβ¨
π¦ where this page comes from
- alpine 3.24: xbps-doc 0.60.6-r1 Β· BSD-2-Clause AND BSD-3-Clause AND ISC
- nixos 26.05: xbps 0.60.7
- nixpkgs unstable: xbps 0.60.7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms