Re: [Nolug] uninstalling apache2

From: lance lassetter <lancelassetter_at_gmail.com>
Date: Thu, 01 Jul 2010 21:10:14 -0500
Message-ID: <1278036614.25124.1.camel@lass205.info>

the reason dpkg leaves those directories and files around is because
they have been modified by the user.

On Thu, 2010-07-01 at 21:02 -0500, James Hess wrote:
> On Thu, Jul 1, 2010 at 7:35 PM, Ronald Giardina
> <general.reikan@gmail.com> wrote:
> > I've looked online and can't find a solution to this that works. Notice my
> > usage of underlining. If the explicit purpose of the purge option is to
> > remove a package and it's configuration files why does dpkg choke when it
> > finds configuration files in a folder? Educate me please!
>
> Well, you are using the right command for that, but in some cases,
> dpkg leaves around directories, because it tries to delete the
> directory first and fails because there are files in it.. the files
> might even get removed leaving behind an empty dir. In these cases I
> would call that a long-time dpkg bug.
> But usually an empty directory left behind is harmless.
>
> The simplest way to cleanup after dpkg in this case is to remove the
> directory by hand using 'rmdir /path/to/directory' after
> manually deleting all files there, or the quicker 'rm -r
> /path/to/directory', if you are sure there are no files in there
> unrelated to what you are erasing.
>
> In other cases, there might be a file in that directory which is not
> part of the package, for example, a file you created, or a file that
> is part of a different package. In either case, deleting package A
> shouldn't delete package B's files, so the directory gets kept.
>
> e.g.
> warning: while removing blahblah, directory '/usr' not empty so not removed.
>
>
> --
> -JH
> ___________________
> Nolug mailing list
> nolug@nolug.org

___________________
Nolug mailing list
nolug@nolug.org
Received on 07/01/10

This archive was generated by hypermail 2.2.0 : 07/02/10 EDT