PKG-DELETE(8)
π pkg delete β PKG-DELETE(8) π
okay bestie, welcome to the System Manager's Manual entry for pkg delete β that's PKG-DELETE(8) if you're keeping score π«Ά
π NAME π
pkg delete β deletes packages from the database and the system. periodt.
β¨ SYNOPSIS β¨
pkg delete [-DfnqRy] [-Cgix] pkg-name ...
pkg delete [-Dnqy] -a
pkg delete [--{no-scripts,force,dry-run,quiet,recursive,yes,autoremove}]
[--{case-sensitive,glob,case-insensitive,regex}] pkg-name ...
pkg delete [--{no-scripts,dry-run,quiet,yes,autoremove}] --all
πΈ DESCRIPTION πΈ
So pkg delete is the icon that removes installed packages from your system. It builds a work-list of every installed package matching the pkg-names you dropped on the command line, and then it shows you that list π
If you confirm that yes, bestie, remove those packages, or if the ASSUME_ALWAYS_YES configuration option is set, pkg delete goes ahead and removes the listed packages. no cap.
If deleting that set of packages would leave installed packages with unfulfilled dependencies, pkg delete will add the packages with unfulfilled dependencies to the list of packages to be deleted β unless the -f option forces it to proceed without deleting any other packages. important vibe check π
pkg delete avoids deleting itself unless it's named specifically on the command line. So, for instance, pkg delete -a will delete all packages except for the pkg(8) package. To force all packages to be removed without exception, use pkg delete -fa. no exceptions means no exceptions, bestie π
π OPTIONS π
The following options are supported by pkg delete:
-a,--allβ Deletes all installed packages except forpkg(8)from the system and cleans the database of information related to removed packages.-C,--case-sensitiveβ Make the standard or regular expression (-x) matching againstpkg-namecase sensitive.-D,--no-scriptsβ If a deinstallation script exists for a given package, do not execute it.-f,--forceβ Forces packages to be removed despite leaving unresolved dependencies. In combination with the-aor--allflag, causespkg(8)to be removed as well as all other packages.-g,--globβ Treat the package names as shell glob patterns.-i,--case-insensitiveβ Make the standard or regular expression (-x) matching againstpkg-namecase insensitive. This is the default, unless modified by settingCASE_SENSITIVE_MATCHto true inpkg.conf.-n,--dry-runβ Dry run mode. The list of packages to delete is always printed, but no packages are actually deleted.-q,--quietβ Force quiet output, except where-nis also used, whenpkg deletewill show the list of packages to be deleted.-R,--recursiveβ Delete all packages that require the listed packages as well.-x,--regexβ Treat the package names as regular expressions according to the"modern"or"extended"syntax ofre_format(7).-y,--yesβ Assume yes when asked for confirmation before package deletion.--autoremoveβ After deleting the requested packages, automatically remove any orphaned packages that were installed as dependencies and are no longer required. This is equivalent to runningpkg-autoremove(8)after the deletion. Can also be enabled permanently via theAUTOREMOVEoption inpkg.conf(5).--script-no-execβ Do not execute the pre-deinstall and post-deinstall scripts but still log the scripts in the package database for future reference. Unlike-D, which prevents scripts from both running and being recorded,--script-no-execonly suppresses execution.
π¦ ENVIRONMENT π¦
The following environment variables affect the execution of pkg delete. See pkg.conf(5) for further description.
DEFAULT_ALWAYS_YESASSUME_ALWAYS_YESHANDLE_RC_SCRIPTSPKG_DBDIRCASE_SENSITIVE_MATCH
π FILES π
See pkg.conf(5).
π SEE ALSO π
You can also peek at: pkg_create(3), pkg_printf(3), pkg_repo_create(3), pkg_repos(3), pkg-keywords(5), pkg-lua-script(5), pkg-repository(5), pkg-script(5), pkg-triggers(5), pkg.conf(5), pkg(8), pkg-add(8), pkg-alias(8), pkg-annotate(8), pkg-audit(8), pkg-autoremove(8), pkg-check(8), pkg-clean(8), pkg-config(8), pkg-create(8), pkg-fetch(8), pkg-help(8), pkg-info(8), pkg-install(8), pkg-key(8), pkg-lock(8), pkg-plugins(8), pkg-query(8), pkg-register(8), pkg-repo(8), pkg-repositories(8), pkg-rquery(8), pkg-search(8), pkg-set(8), pkg-shell(8), pkg-shlib(8), pkg-ssh(8), pkg-stats(8), pkg-triggers(8), pkg-unregister(8), pkg-update(8), pkg-updating(8), pkg-upgrade(8), pkg-version(8), pkg-which(8).
source/version: Debian β’ date: April 8, 2021 β’ mwah, bestie ππ
π¦ where this page comes from
- nixos 26.05: pkg 2.7.5
- nixpkgs unstable: pkg 2.7.5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms