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

Re: rm -rf /usr/somedir in maintainer scripts? (was: dpkg, symlinks, directories)

also sprach Nikolaus Rath <Nikolaus@rath.org> [2012.09.30.0056 +0200]:
> > 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.

Do not mess with /usr, that is exclusively the domain of dpkg. Any
file you place there may well be overridden. Use dpkg-divert if you
have to.

 .''`.   martin f. krafft <madduck@d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
"a warm bed in a house sounds a mite better
 than eating a hot dog on a stick
 with an old geezer traveling on a lawn mower."
                                -- alvin straight (the straight story)

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply to: