PKG_DELETE(1) | General Commands Manual | PKG_DELETE(1) |
pkg_delete
—
delete software package distributions
pkg_delete |
[-acIimnqsVvXx ] [-B
pkg-destdir] [-D
name[=value]]
[pkg-name ...] |
The pkg_delete
command is used to delete
packages that have been previously installed with the
pkg_add(1) command.
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 /var/db/pkg/pkgname, so that shell wildcards can be used.
Version numbers and flavors (see packages-specs(7)) can be omitted, unless the resulting specification is ambiguous.
Otherwise, pkg-name in
pkg_delete
may use the same convenient shortcuts as
pkg_add(1):
‘pkg_delete
autoconf%2.13’ will
delete autoconf from the 2.13
branch.
pkg_delete
will
syslog(3) deletions by
default.
pkg_delete
relies on the file system
information being consistent. In case of a system crash,
/var/db/pkg may become corrupted. Use
pkg_check(8) to repair
things.
pkg_delete
may ask questions in
interactive mode, or error out otherwise. Interactive mode is the default on
a tty, see options -I/i
.
The options are as follows:
-a
-B
pkg-destdir-c
@extra file
-D
name[=value]baddepend
checksum
dependencies
nonroot
scripts
-I
-i
pkg_delete
may ask questions to the user if faced
with difficult decisions.-m
pkg_delete
to always display the progress
meter in cases it would not do so by default.-n
-qq
-s
-V
-V
will
turn on more statistics in the future.-v
-v
turn on more
verbose output. By default, pkg_delete
is almost
completely silent, but it reacts to keyboard status requests (see
stty(1)).
-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.-X
-x
pkg_delete
examines installed package
records for the pkgname specified, checks
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.
PKG_CHECKSUM
-D
checksum
.PKG_DBDIR
pkg_add(1), pkg_create(1), pkg_info(1), packages-specs(7), pkg_check(8)
July 10, 2018 | OpenBSD-6.8 |