summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/delete/pkg_delete.1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-07-02 23:13:00 +0000
committerru <ru@FreeBSD.org>2004-07-02 23:13:00 +0000
commit6294018a208cf7742b1c021a9b75c26962505571 (patch)
tree502f17eb951b74c914af346cd4dbff252350c082 /usr.sbin/pkg_install/delete/pkg_delete.1
parent3f44360851448f8816c22f6b72e8dd5c9924c27f (diff)
downloadFreeBSD-src-6294018a208cf7742b1c021a9b75c26962505571.zip
FreeBSD-src-6294018a208cf7742b1c021a9b75c26962505571.tar.gz
Mechanically kill hard sentence breaks.
Diffstat (limited to 'usr.sbin/pkg_install/delete/pkg_delete.1')
-rw-r--r--usr.sbin/pkg_install/delete/pkg_delete.130
1 files changed, 20 insertions, 10 deletions
diff --git a/usr.sbin/pkg_install/delete/pkg_delete.1 b/usr.sbin/pkg_install/delete/pkg_delete.1
index 9c7cc86..92f22fa 100644
--- a/usr.sbin/pkg_install/delete/pkg_delete.1
+++ b/usr.sbin/pkg_install/delete/pkg_delete.1
@@ -49,7 +49,8 @@ or other subtle
attacks from miscreants who create dangerous package files.
.Pp
You are advised to verify the competence and identity of those who
-provide installable package files. For extra protection, examine all
+provide installable package files.
+For extra protection, examine all
the package control files in the package record directory
.Pa ( /var/db/pkg/<pkg-name>/ ) .
Pay particular attention to any +INSTALL, +POST-INSTALL, +DEINSTALL,
@@ -88,15 +89,18 @@ would be taken if it were.
Set
.Ar prefix
as the directory in which to delete files from any installed packages
-which do not explicitly set theirs. For most packages, the prefix will
+which do not explicitly set theirs.
+For most packages, the prefix will
be set automatically to the installed location by
.Xr pkg_add 1 .
.It Fl d
-Remove empty directories created by file cleanup. By default, only
+Remove empty directories created by file cleanup.
+By default, only
files/directories explicitly listed in a package's contents (either as
normal files/directories or with the
.Cm @dirrm
-directive) will be removed at deinstallation time. This option tells
+directive) will be removed at deinstallation time.
+This option tells
.Nm
to also remove any directories that were emptied as a result of removing
the package.
@@ -114,7 +118,8 @@ automatically expands shell glob patterns in the
Treat the
.Ar pkg-name
as a regular expression and delete all packages whose names match
-that regular expression. Multiple regular expressions could be
+that regular expression.
+Multiple regular expressions could be
provided, in that case
.Nm
deletes all packages that match at least one
@@ -126,14 +131,16 @@ but treats the
.Ar pkg-name
as an extended regular expression.
.It Fl r
-Recursive removal. In addition to specified packages, delete all
+Recursive removal.
+In addition to specified packages, delete all
packages that depend on those packages as well.
.El
.Sh TECHNICAL DETAILS
The
.Nm
utility
-does pretty much what it says. It examines installed package records in
+does pretty much what it says.
+It examines installed package records in
.Pa /var/db/pkg/<pkg-name> ,
deletes the package contents, and finally removes the package records.
If the environment variable
@@ -164,7 +171,8 @@ then this is executed first as
is the name of the package in question and
.Ar DEINSTALL
is a keyword denoting that this is a deinstallation)
-to see whether or not deinstallation should continue. A non-zero exit
+to see whether or not deinstallation should continue.
+A non-zero exit
status means no, unless the
.Fl f
option is specified.
@@ -205,7 +213,8 @@ If a
.Cm post-deinstall
script exists for the package, it is executed
.Cm after
-all files are removed. It is this script's responsibility to clean up any
+all files are removed.
+It is this script's responsibility to clean up any
additional messy details around the package's installation, and leave the
system (hopefully) in the same state that it was prior to the installation
of the package.
@@ -250,7 +259,8 @@ All scripts are called with the environment variable
.Ev PKG_PREFIX
set to the installation prefix (see the
.Fl p
-option above). This allows a package author to write a script
+option above).
+This allows a package author to write a script
that reliably performs some action on the directory where the package
is installed, even if the user might have changed it by specifying the
.Fl p
OpenPOWER on IntegriCloud