XBPS-REMOVE(1)
π 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
preACTION on itsREMOVEscript (which can be shown by runningxbps-query --property=remove-script pkg). - Package files are removed if those have not been modified. The
-foption overrides this behaviour and forcefully removes the files. - Executes the
postACTION on itsREMOVEscript (which can be shown by runningxbps-query --property=remove-script pkg). - Changes package state to
XBPS_PKG_STATE_HALF_REMOVEDin the package database. - Executes the
purgeACTION on itsREMOVEscript (which can be shown by runningxbps-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 autoinxbps-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β Overridesuname(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 fromXBPS_ARCHin 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 thexbps.d(5)syslog=true|falseconfiguration 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
- 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