PKG-DELETE(8)

πŸ“¦ version 2.7.5, in nixos 26.05, nixpkgs unstable

πŸ’… 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 for pkg(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 against pkg-name case 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 -a or --all flag, causes pkg(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 against pkg-name case insensitive. This is the default, unless modified by setting CASE_SENSITIVE_MATCH to true in pkg.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 -n is also used, when pkg delete will 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 of re_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 running pkg-autoremove(8) after the deletion. Can also be enabled permanently via the AUTOREMOVE option in pkg.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-exec only suppresses execution.

πŸ¦‹ ENVIRONMENT πŸ¦‹

The following environment variables affect the execution of pkg delete. See pkg.conf(5) for further description.

  • DEFAULT_ALWAYS_YES
  • ASSUME_ALWAYS_YES
  • HANDLE_RC_SCRIPTS
  • PKG_DBDIR
  • CASE_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