XBPS-PKGDB(1)

πŸ“¦ version 0.60.6, in alpine 3.24, nixos 26.05, nixpkgs unstable

πŸ’– 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.
  • --checks checks β€” run only the checks specified in checks, a comma separated list. the available checks are files, dependencies, alternatives and pkgdb, for internal checks. pick your fighters.
  • -C, --config dir β€” specifies a path to the XBPS configuration directory. if the first character is not / then it's a relative path of rootdir. just so you know.
  • -d, --debug β€” enables extra debugging shown to stderr. for when you need to see the receipts.
  • -h, --help β€” show the help message. the classic.
  • -m, --mode auto|manual|hold|unhold|repolock|repounlock β€” the mode selector, she contains multitudes:
    • auto, manual β€” auto marks each PKGNAME as automatic, as if it was installed implicitly as a dependency of another package. manual marks each PKGNAME as if it was installed explicitly as an operand to xbps-install(1). automatic packages are considered for removal by xbps-remove --remove-orphans; see also --list-manual-pkgs, --list-orphans in xbps-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 -u does not update packages on hold; see also --list-hold-pkgs in xbps-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-pkgs in xbps-query(1). she's loyal to her repo, fr fr.
  • -r, --rootdir dir β€” 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.38 format). 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