Re: rm -rf /usr/somedir in maintainer scripts?
gregor herrmann <gregoa@debian.org> writes:
> On Sat, 29 Sep 2012 20:29:09 -0400, Nikolaus Rath wrote:
>
>> >>>> I've solved that in the
>> >>>> preinst script by 'rm -rf /usr/include/libfm' and I thought yet that was
>> >>>> a right step since upgrade 1.0.1 -> 1.0.2 went smooth.
>> >>>Somehow that sounds like a really bad idea to me. Admittedly manually
>> >>>placing some file in /usr/include/libfm is pretty ugly, but I would
>> >>>still certainly not expect that upgrading the libfm package would remove
>> >>>it.
>> >>>Is that really good practice? Can packages "own" a directory, so that
>> >>>anything that the local admin puts there may be removed automatically?
>
> Yes, there's no guarantee that a directory belonging to a package
> will be there after the next upgrade.
How do I check if a directory belongs to a package?
What should package do if it wants to install a file in a directory
owned by another package?
Thanks,
-Nikolaus
--
»Time flies like an arrow, fruit flies like a Banana.«
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
Reply to:
- References:
- dpkg, symlinks, directories
- From: Vincent Bernat <bernat@debian.org>
- Re: dpkg, symlinks, directories
- From: Salvatore Bonaccorso <carnil@debian.org>
- Re: dpkg, symlinks, directories
- From: "Andrej N. Gritsenko" <andrej@rep.kiev.ua>
- Re: dpkg, symlinks, directories
- From: Vincent Bernat <bernat@debian.org>
- Re: dpkg, symlinks, directories
- From: "Andrej N. Gritsenko" <andrej@rep.kiev.ua>
- rm -rf /usr/somedir in maintainer scripts? (was: dpkg, symlinks, directories)
- From: Nikolaus Rath <Nikolaus@rath.org>
- Re: rm -rf /usr/somedir in maintainer scripts? (was: dpkg, symlinks, directories)
- From: "Andrej N. Gritsenko" <andrej@rep.kiev.ua>
- Re: rm -rf /usr/somedir in maintainer scripts? (was: dpkg, symlinks, directories)
- From: "Andrej N. Gritsenko" <andrej@rep.kiev.ua>
- Re: rm -rf /usr/somedir in maintainer scripts?
- From: Nikolaus Rath <Nikolaus@rath.org>
- Re: rm -rf /usr/somedir in maintainer scripts?
- From: gregor herrmann <gregoa@debian.org>