summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-12-02 03:33:59 +0100
committerGuillem Jover <guillem@debian.org>2019-01-15 02:17:10 +0100
commit48c15b3b17bbc2903899a979c5694b99b1bf1803 (patch)
treeacf61742cb90f49c74b8ae77ba14c2c2d53cf634 /man
parent7315e238d223cc43c7af1811bfe871e89b04c415 (diff)
downloaddpkg-48c15b3b17bbc2903899a979c5694b99b1bf1803.tar.gz
man: Clarify dpkg(1) --remove action
Describe when --remove is equivalent to --purge, and what data it will cleanup and when. Closes: #914478
Diffstat (limited to 'man')
-rw-r--r--man/dpkg.man8
1 files changed, 6 insertions, 2 deletions
diff --git a/man/dpkg.man b/man/dpkg.man
index 62ffceda3..c43b7d512 100644
--- a/man/dpkg.man
+++ b/man/dpkg.man
@@ -183,10 +183,14 @@ improper \fBtriggers\-awaited\fP and \fBtriggers\-pending\fP states. This
can be fixed later by running: \fBdpkg \-\-configure \-\-pending\fP.
.TP
\fB\-r\fP, \fB\-\-remove\fP \fIpackage\fP...|\fB\-a\fP|\fB\-\-pending\fP
-Remove an installed package. This removes everything except conffiles,
+Remove an installed package.
+This removes everything except conffiles and other data cleaned up by
+the \fIpostrm\fP script,
which may avoid having to reconfigure the package if it is reinstalled
later (conffiles are configuration files that are listed in the
\fIDEBIAN/conffiles\fP control file).
+If there is no \fIDEBIAN/conffiles\fP control file nor \fIDEBIAN/postrm\fP
+script, this command is equivalent to calling \fB\-\-purge\fP.
If \fB\-a\fP or \fB\-\-pending\fP is given instead of a package name,
then all packages unpacked, but marked to be removed in file
\fI%ADMINDIR%/status\fP, are removed.
@@ -206,7 +210,7 @@ Removing of a package consists of the following steps:
.TP
\fB\-P\fP, \fB\-\-purge\fP \fIpackage\fP...|\fB\-a\fP|\fB\-\-pending\fP
Purge an installed or already removed package. This removes everything,
-including conffiles.
+including conffiles, and anything else cleaned up from \fIpostrm\fP.
If \fB\-a\fP or \fB\-\-pending\fP is given instead of a package name,
then all packages unpacked or removed, but marked to be purged in file
\fI%ADMINDIR%/status\fP, are purged.