delete software package distributions
command is used to delete packages
that have been previously installed with the
Package names may be specified either as the package name itself, or as a
filename which consists of the package name plus the “.tgz”
suffix, or as a full pathname like
, so that shell wildcards can
Version numbers and flavors (see
be omitted, unless the resulting specification is ambiguous.
may use the same convenient shortcuts
will delete autoconf
deletions by default.
relies on the file system information
being consistent. In case of a system crash,
may become corrupted. Use
may ask questions in interactive mode,
or error out otherwise. Interactive mode is the default on a tty, see options
The options are as follows:
- Delete unused dependencies (packages that are not needed by
anything tagged as installed manually). Can be used without
pkgnames. If used with
pkgnames, it will only delete non manual
installs in the list.
- Set pkg-destdir as the
prefix to prepend to any object deleted.
- Delete extra configuration file, mentioned as
in the packing-list.
- Force removal of the package.
name is a keyword that states what
failsafe should be waived. Recognized keywords include:
- Force the deletion of packages even if they reference
- Verify checksums before deleting files.
- Also delete the whole set of packages that depends upon
the requested packages.
- Uninstall even if not running as root.
- External scripts may fail.
- Force non-interactive mode. Default is to be interactive
when run from a tty.
- Force interactive mode, even if not run from a tty.
pkg_delete may ask questions to the user if
faced with difficult decisions.
- Causes pkg_delete to always
display the progress meter in cases it would not do so by default.
- Don't actually deinstall a package, just report the steps
that would be taken if it were.
- Do not bother with checksums for configuration files.
- Don't actually deinstall packages, report the disk size
changes that would happen.
- Turn on statistics output. For now, only displays the
number of packages done/total number of packages. Several
-V will turn on more statistics in the
- Turn on verbose output. Several
-v turn on more verbose output. By default,
pkg_delete is almost completely silent, but
it reacts to keyboard status requests (see
-v turns on basic messages,
-vv adds relevant system operations,
-vvv shows most internal computations apart
from individual file/directory additions, and
-vvvvv shows everything.
- Delete everything, except the list of packages that
- Disable progress meter.
examines installed package records for
inter-dependencies between installed packages, deletes the package contents in
an order respecting dependencies (e.g., packages with dependencies get removed
first), and finally removes the package records.
If a package is required by other installed packages not mentioned in the list
of packages to remove, pkg_delete
will list those
dependent packages and refuse to delete the package.
- If set, verify files checksums during deletion, exactly
- Where to look for installed packages instead of
- Value for pkg-destdir, if
no -B option is specified.
- initial design
- complete rewrite