Stephen Gran on 30 Jun 2006 13:41:24 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] apt-get remove


On Fri, Jun 30, 2006 at 09:04:29AM -0400, Jeff Abrahamson said:
> I've noticed that "apt-get remove" doesn't always remove everything.
> Configuration files are reasonable if I have modified them, but, for
> example, it sometimes leaves cron jobs behind.  Here's an example:
> 
>     jeff@astra:~ $ dpkg -l uucp
>     rc  uucp           1.07-17        Unix to Unix Copy Program
>     jeff@astra:~ $ for f in $(dpkg -L uucp); do if [ -e $f ]; then echo $f; fi; done
>     /etc/uucp/Poll
>     /etc/uucp/expire
>     /etc/logrotate.d/uucp
>     /etc/pam.d/uucp
>     /etc/cron.d/uucp
>     /var/log/uucp
>     /var/spool/uucp
>     jeff@astra:~ $
> 
> I haven't been able to determine if this is intended behavior or a
> package bug against which I should file a bug report.  Anyone know
> what's intended?

Files in /etc are only removed on purge (apt-get remove --purge or
dpkg --purge).  The same is true for logs.  As for the spool, that's
usually package specific - some remove the spool on purge, some ask,
and some always leave it behind.  The idea here is that you might want
to, for instance, switch MTA's to test a new one, decide you don't like
it, and switch back.  All your configuration, logs, and spools are still
there, and things just pick up where they left off.
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | "See - the thing is - I'm an            |
|  steve@lobefin.net             | absolutist.  I mean, kind of ... in a   |
|  http://www.lobefin.net/~steve | way ..."                                |
 --------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug