All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Laszlo Boszormenyi (GCS)" <gcs@debian.hu>
To: Sage Weil <sage@inktank.com>
Cc: Dan Mick <dan.mick@inktank.com>,
	Mark Nelson <mark.nelson@inktank.com>,
	ceph-devel@vger.kernel.org, james.page@ubuntu.com
Subject: Re: deb/rpm package purge
Date: Wed, 20 Mar 2013 06:29:29 +0000	[thread overview]
Message-ID: <1363760969.12547.52.camel@julia> (raw)
In-Reply-To: <alpine.DEB.2.00.1303191554590.4850@cobra.newdream.net>

On Tue, 2013-03-19 at 15:59 -0700, Sage Weil wrote:
> On Tue, 19 Mar 2013, Laszlo Boszormenyi (GCS) wrote:
> > 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.
> 
> I understand that part, but the policy isn't very clear about files that 
> are not part of the package but are generated as a result of the package 
> being installed (i.e., user data).
 Forgive me, I just learnt English and my wording may not be that clear
for a natural speaker.

> As a point of comparison, mysql removes the config files but not 
> /var/lib/mysql.
 As I remember, MySQL asks if /var/lib/mysql/ should be purged or not; I
may mix with an other (database related) package.

> The question is, is that okay/typical/desireable/recommended/a bad idea?
 I can rephrase my words. Purge removes the (binary) package files, its
configuration and logs (its generated files). To emphasis, user files
are _not_ fall into this category and must remain as-is, _intact_.
Some packages writes a console message that 'your files remain at xxx,
they were not removed' on purge. Others just leave the dpkg warning
"directory not empty so not removed" which means user files may have
left there and that may be the reason the directory is not empty.
 I'm in a rush, but hopefully will be able to note policy parts in the
afternoon (CET).

> The less important question is whether /var/log/ceph should be removed; 
> I'm assuming yes?
 Yes, logs are going to be removed.

Hope I could answer your question now. Please note me if I should clear
more parts of my answer.
Laszlo/GCS


  reply	other threads:[~2013-03-20  6:29 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-19 19:48 deb/rpm package purge Sage Weil
2013-03-19 19:59 ` Greg Farnum
2013-03-19 20:05 ` Mark Nelson
2013-03-19 20:46   ` Dan Mick
2013-03-19 20:51     ` Sage Weil
2013-03-19 22:27       ` Laszlo Boszormenyi (GCS)
2013-03-19 22:29         ` Sage Weil
2013-03-19 22:51           ` Laszlo Boszormenyi (GCS)
2013-03-19 22:59             ` Sage Weil
2013-03-20  6:29               ` Laszlo Boszormenyi (GCS) [this message]
2013-03-20 12:48                 ` Sage Weil
2013-03-20 14:48                   ` Mark Nelson
2013-03-20 17:27                     ` James Page
2013-03-20 23:23                   ` Laszlo Boszormenyi (GCS)
2013-03-21  1:08                     ` Dan Mick
2013-03-19 23:01             ` Mark Nelson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1363760969.12547.52.camel@julia \
    --to=gcs@debian.hu \
    --cc=ceph-devel@vger.kernel.org \
    --cc=dan.mick@inktank.com \
    --cc=james.page@ubuntu.com \
    --cc=mark.nelson@inktank.com \
    --cc=sage@inktank.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.