|PKG_DELETE(1)||General Commands Manual||PKG_DELETE(1)|
pkg_deletecommand 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.
The options are as follows:
pkg_deletemay ask questions to the user if faced with difficult decisions.
pkg_deleteto always display the progress meter in cases it would not do so by default.
-vturn on more verbose output. By default,
pkg_deleteis almost completely silent, but it reacts to keyboard status requests (see stty(1)).
-vturns on basic messages,
-vvadds relevant system operations,
-vvvshows most internal computations apart from individual file/directory additions, and
pkg_deleteexamines 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,
list those dependent packages and refuse to delete the package.
deinstall script exists for the
@unexec is more versatile), it
is executed before any files are removed. Such a script can be used to
remove messy dynamic files created by the package on installation or during
deinstall script is called as:
Passing the keyword DEINSTALL lets you potentially write only one program/script that handles all aspects of installation and deletion.
-Boption is specified; value passed to any
REQUIREscript invoked from the package.
|December 2, 2011||OpenBSD-5.1|