From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Laszlo Boszormenyi (GCS)" Subject: Re: deb/rpm package purge Date: Tue, 19 Mar 2013 22:51:13 +0000 Message-ID: <1363733473.12547.33.camel@julia> References: <5148C4EE.5090205@inktank.com> <5148CEC2.2050405@inktank.com> <1363732049.12547.22.camel@julia> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.barcikacomp.hu ([94.248.160.10]:38034 "EHLO mail.barcikacomp.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934117Ab3CSWvO (ORCPT ); Tue, 19 Mar 2013 18:51:14 -0400 In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Sage Weil Cc: Dan Mick , Mark Nelson , ceph-devel@vger.kernel.org, james.page@ubuntu.com On Tue, 2013-03-19 at 15:29 -0700, Sage Weil wrote: > On Tue, 19 Mar 2013, Laszlo Boszormenyi (GCS) wrote: > > In short, if user asks to purge the package, then the keys have to be > > removed as well. If someone thinks about a reinstallation, s/he should > > use remove instead. > The keys aren't a problem; they are still in the mon database > (/var/lib/ceph/mon/...). > > The real question is whether purge should remove /var/lib/ceph and > /var/log/ceph... Sorry if I was not clear and/or generic enough. Use of 'dpkg --remove' is to remove binaries of the package, but leave other things, runtime data (configuration, logs, database settings/users and so on) to be left untouched. On the other hand, 'dpkg --purge' is to remove everything the package has installed and/or generated. This includes debconf answers as well. With other words, purge is used to make the system totally clean of the package. As such, if the sysadmin install the package again, all debconf questions will be asked again and all generated files will be generated again from scratch. Laszlo/GCS