XBPS-PKGDB(1)
π XBPS-PKGDB(1) β the glow-up manual π
okay bestie, so this is xbps-pkgdb, and it lives in the General Commands Manual section (section 1, iykyk). she's the XBPS utility that checks/fixes issues and mods the package database (aka pkgdb), and honestly? she's iconic for it. π
β¨ NAME β¨
xbps-pkgdb β the XBPS utility that reports/fixes issues and modifies the package database (pkgdb). no cap, that's her whole thing.
πΈ SYNOPSIS πΈ
xbps-pkgdb [OPTIONS] [PKGNAME...]
π¦ DESCRIPTION π¦
so xbps-pkgdb can check/fix issues and modify the package database (pkgdb). she's lowkey multi-talented: she can check for missing dependencies, modified files and symlinks, alternatives, and like all the other errors that got fixed in newer versions of xbps. there's also a mode to update the format to the latest version. very main character energy. β¨
this is the list of things she currently does, bestie:
π METADATA CHECK π
checks that the package metadata files have not been modified β she compares the original hash (recorded back when the package was installed) against the current one. vibe check on your hashes, basically.
π FILES CHECK π
checks that all files belonging to a package haven't been modified and aren't missing. for regular files, she compares and checks its modification time and the SHA256 hash and sees if they differ. for symbolic links, she checks that the target file hasn't been modified. she's thorough like that.
π DEPENDENCIES CHECK π
checks that all required dependencies for a package are resolved. no orphaned vibes allowed.
π ALTERNATIVES CHECK π
checks that all alternatives symlinks for set alternatives groups are correct. symmetry is everything, periodt.
π§ OBSOLETE METADATA CHECK π§
checks that the package database doesn't contain obsolete data from previous XBPS versions β and removes them if found. she cleans up, she's organized, we love her for it.
β FORMAT CONVERSION β
updates the pkgdb format to the latest version. she stays fresh.
π OPTIONS π
-a,--allβ processes all registered packages, regardless of its state. everyone gets a turn, no favorites.--checkschecks β run only the checks specified in checks, a comma separated list. the available checks arefiles,dependencies,alternativesandpkgdb, for internal checks. pick your fighters.-C,--configdir β specifies a path to the XBPS configuration directory. if the first character is not/then it's a relative path ofrootdir. just so you know.-d,--debugβ enables extra debugging shown tostderr. for when you need to see the receipts.-h,--helpβ show the help message. the classic.-m,--modeauto|manual|hold|unhold|repolock|repounlockβ the mode selector, she contains multitudes:auto,manualβautomarks each PKGNAME as automatic, as if it was installed implicitly as a dependency of another package.manualmarks each PKGNAME as if it was installed explicitly as an operand toxbps-install(1). automatic packages are considered for removal byxbps-remove --remove-orphans; see also--list-manual-pkgs,--list-orphansinxbps-query(1). so basically: was it a main character install or a sidekick install?hold,unholdβ set or unset the hold mode for each PKGNAME.xbps-install -udoes not update packages on hold; see also--list-hold-pkgsinxbps-query(1). on hold = do not disturb. πrepolock,repounlockβ set or unset the repolock mode for each PKGNAME. a package in repolock mode will only accept updates that are available in the same repository that was used for installing. see also--list-repolock-pkgsinxbps-query(1). she's loyal to her repo, fr fr.
-r,--rootdirdir β specifies a full path for the target root directory.-u,--updateβ updates the pkgdb format to the latest version making the necessary conversions automatically. usually this is needed only in rare circumstances β so don't just do it for fun, bestie.-v,--verboseβ enables verbose messages. she'll tell you everything.-V,--versionβ show the version information. π«Ά
π 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.38format). keeps track of installed packages and properties./var/cache/xbpsβ default cache directory to store downloaded binary packages.
π 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-query(1), xbps-reconfigure(1), xbps-remove(1), xbps-rindex(1), xbps-uchroot(1), xbps-uunshare(1), xbps.d(5) β the whole friend group, go say hi.
π AUTHORS π
- Juan Romero Pardines
<xtraeme@gmail.com> - Duncan Overbruck
<mail@duncano.de>
absolute legends, we stan. π
π BUGS π
probably, but I try to make this not happen. use it under your own responsibility and enjoy your life. (their words, not mine, but honestly? iconic energy.)
report bugs at https://github.com/void-linux/xbps/issues β the devs wanna know, bestie.
so yeah, that's the whole page π¦ this came from the Debian source, dated Feb 9, 2023, and it's the XBPS-PKGDB(1) manual page. go forth and check those package databases, you've got this πβ¨π
π¦ 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