FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 06-03-2008, 06:22 PM
Ian Jackson
 
Default What should postrm purge actually do?

Richard Kettlewell writes ("What should postrm purge actually do?"):
> Is it written down anywhere what postrm purge is supposed to do?
> Presumably remove some set of files, but what criteria should be used to
> choose which?

It's a shame that this isn't more clearly documented.

> The policy document is not much help; s6.8 says when it is called, but
> not what it actually needs to do. I can't find more detail, though of
> course I may have missed it.
>
> Things I think it should remove:
> - generated configuration files

Definitely.

> Things I'm uncertain about, but that wouldn't be missed:
> - infrastructural stuff (lockfiles, sockets, etc)
> - files containing cached data

Absolutely, it should remove all of these. You should remove these on
postrm remove, in fact, and not wait for purge.

> Things I'm uncertain about, that someone might actually miss:
> - log files

Yes, these should be removed.

I have an old version of the policy manual from before it was merged
with the dpkg programmers' manual, and that says to remove logfiles on
purge.

> - data accumulated from users

> Configuration files might be missed too, so obviously --purge isn't
> intended to be nondestructive, the question is how destructive is it
> supposed to be and to what extent is it responsible for tidying up.

I think you are allowed to make a judgement call here.

The usual thing to do would definitely be to remove _everything_, so
as to put the system back almost to the state as if the package hadn't
been installed. (There may be minor exceptions, such as leaving users
in passwd to avoid uid reuse.)

But I think for example database packages don't generally remove their
actual database data when they're purged, because they think the data
is likely to be exceptionally important to the admin. Something
that's exceptionally important is both more desirable to keep, and
also less of a problem if the admin needs to manually tidy it up.

Personally I would lean on the side of deleting the disorder
user-entered data on purge but I can see arguments on both sides.

Ian.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-03-2008, 06:41 PM
"Jeffrey Ratcliffe"
 
Default What should postrm purge actually do?

2008/6/3 Peter Palfrader <weasel@debian.org>:
>> - data accumulated from users

Should I be doing something like

rm /home/*/.packagedotfile

for user-specific dotfiles?

I don't see this in the policy.

Regards

Jeff


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-03-2008, 06:49 PM
sean finney
 
Default What should postrm purge actually do?

On Tuesday 03 June 2008 08:41:20 pm Jeffrey Ratcliffe wrote:
> 2008/6/3 Peter Palfrader <weasel@debian.org>:
> >> - data accumulated from users
>
> Should I be doing something like
>
> rm /home/*/.packagedotfile
>
> for user-specific dotfiles?

for the love of flying spaghetti monster please no

a purge should only remove files that were installed by the package or
otherwise incidentally generated in FHS compliant locations. data created in
users' home directories is definitely outside such a scope. i.e., if dpkg
couldn't put files there, it shouldn't try to remove files from there.



sean
 
Old 06-03-2008, 06:58 PM
"Jeffrey Ratcliffe"
 
Default What should postrm purge actually do?

2008/6/3 sean finney <seanius@debian.org>:
> a purge should only remove files that were installed by the package or
> otherwise incidentally generated in FHS compliant locations. data created in
> users' home directories is definitely outside such a scope. i.e., if dpkg
> couldn't put files there, it shouldn't try to remove files from there.

Fine. Although it always annoyed me that my $HOME filled up with
spurious dotfiles whose origin I'm not necessarily sure of, and that a
good installer could know to remove them if the package were purged.

Or is there a better solution? (I'm not sure it is gconf)

Regards

Jeff


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-03-2008, 07:13 PM
Ron Johnson
 
Default What should postrm purge actually do?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/03/08 13:58, Jeffrey Ratcliffe wrote:
> 2008/6/3 sean finney <seanius@debian.org>:
>> a purge should only remove files that were installed by the package or
>> otherwise incidentally generated in FHS compliant locations. data created in
>> users' home directories is definitely outside such a scope. i.e., if dpkg
>> couldn't put files there, it shouldn't try to remove files from there.
>
> Fine. Although it always annoyed me that my $HOME filled up with
> spurious dotfiles whose origin I'm not necessarily sure of, and that a
> good installer could know to remove them if the package were purged.
>
> Or is there a better solution? (I'm not sure it is gconf)

As a user, I'd be really peeved if postrm automagically deleted my
$HOME files.

An informational message saying that "app(s) in this package created
the file(s) $HOME/.xyzzy and gconf entries A, B & C" would be
helpful, though.

- --
Ron Johnson, Jr.
Jefferson LA USA

"I must acknowledge, once and for all, that the purpose of
diplomacy is to prolong a crisis.", Mr. Spock
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIRZfDS9HxQb37XmcRApCzAKCTZPxi7mrrwstmdr3CvB SdirU0CgCeJ+jh
ZYOAk1FNnd3nNtwwErGo+hI=
=HQov
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 04:58 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org