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

Re: Bug#201023: dosemu: purging doesmu wipes out all user data

1. dpkg -L
2. conffiles belonging to the package
3. configuration files other than conffiles belonging to the package
4. package's log output, cached compiled versions of conffiles, etc.
5. user data created using the package

On Fri, 2003-07-25 at 09:01, Manoj Srivastava wrote:
> > Here is my suggestion for how purge should be handled.  Purge would
> > delete #1 through #4 _and_ everything in /var/lib/<pckg>/.  User
> > data created using the package [#5] must then not be stored in
> > /var/lib/<pckg>/ but somewhere else, e.g., in someone's home
> > directory.  Dosemu, for example, could store the not-to-be-purged
> > DOS image in user "dosemu"'s home dir.
> 	umm, no. Postgres should certainly not try and store the
>  database under /home; since the DB can grow huge.

It would be awfully convenient if packages could do a "rm -rf
/var/lib/<pckg>/" on purge, but we know this deletes things
in some cases that should not be deleted.  So I am proposing
that "rm -rf /var/lib/<pckg>/" always be permitted, and that
any data that is not to be deleted on purge be stored elsewhere.
I don't say where else it _should_ be stored.  Perhaps postgres
data could be stored in another subdirectory of /var/lib/, e.g.,
/var/lib/postgres-data/ .  That understood, is the proposal sound?


Reply to: