XBPS-REMOVE(1)

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

🌟 NAME 🌟

xbps-remove β€” XBPS utility to remove packages. Yep bestie, this is the XBPS-REMOVE(1) manual page, and it’s literally about removing installed packages from the target root directory. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

xbps-remove [OPTIONS] [PKGNAME...]

✨ DESCRIPTION ✨

okay so the xbps-remove utility removes installed packages in the target root directory. Removing a package is a whole little process, not just one vibe check. Here’s the order:

  • Executes the pre ACTION on its REMOVE script (which can be shown by running xbps-query --property=remove-script pkg).
  • Package files are removed if those have not been modified. The -f option overrides this behaviour and forcefully removes the files.
  • Executes the post ACTION on its REMOVE script (which can be shown by running xbps-query --property=remove-script pkg).
  • Changes package state to XBPS_PKG_STATE_HALF_REMOVED in the package database.
  • Executes the purge ACTION on its REMOVE script (which can be shown by running xbps-query --property=remove-script pkg).
  • Package metadata file is removed.
  • Package is unregistered from package database.

πŸŽ€ OPTIONS πŸŽ€

  • -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.
  • -c, --cachedir dir β€” Specifies a path to the cache directory, where binary packages are stored. If the first character is not '/' then it’s a relative path of rootdir.
  • -d, --debug β€” Enables extra debugging shown to stderr.
  • -F, --force-revdeps β€” Forcefully remove package even if there are reverse dependencies and/or broken shared libraries (DANGEROUS!). 🚨
  • -f, --force β€” Forcefully remove package files even if they have been modified.
  • -h, --help β€” Show the help message.
  • -n, --dry-run β€” Dry-run mode. Show what actions would be done but don’t do anything. The current output prints 6 arguments: <pkgver> <action> <arch> <repository> <installedsize> <downloadsize>.
  • -O, --clean-cache β€” Cleans cache directory removing outdated binary packages. If specified twice, also remove packages that are not installed from the cache.
  • -o, --remove-orphans β€” Removes installed package orphans that were installed automatically (as dependencies) and are not currently dependencies of any installed package. See --mode auto in xbps-pkgdb(1).
  • -R, --recursive β€” Recursively remove packages that were installed by PKGNAME and aren’t required by other installed packages.
  • -r, --rootdir dir β€” Specifies a full path for the target root directory.
  • -v, --verbose β€” Enables verbose messages.
  • -y, --yes β€” Assume yes to all questions and avoid interactive questions.
  • -V, --version β€” Show the version information.

🌈 ENVIRONMENT 🌈

  • XBPS_ARCH β€” Overrides uname(2) machine result with this value. Useful to remove packages with a fake architecture.
  • XBPS_TARGET_ARCH β€” Sets the target architecture to this value. This variable differs from XBPS_ARCH in that it allows you to remove packages partially, because configuration phase is skipped (the target binaries might not be compatible with the native architecture).
  • XBPS_SYSLOG β€” Overrides the xbps.d(5) syslog=true|false configuration option.

πŸ“ 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-pkgdb(1), xbps-query(1), xbps-reconfigure(1), xbps-rindex(1), xbps-uchroot(1), xbps-uunshare(1), xbps.d(5)


πŸ‘‘ AUTHORS πŸ‘‘

Written by the icon himself: 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


πŸŽ€ that’s the whole XBPS-REMOVE(1) manual-page vibe β€” footer source/version is XBPS-REMOVE(1), dated Feb 9, 2023, and this is the cute sign-off instead of the boring footer line. periodt. πŸŽ€

πŸ“¦ where this page comes from