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

Re: Removing entire directory trees on package installation



Paul Seelig <pseelig@uni-mainz.de> wrote:
> mh+debian-devel@zugschlus.de (Marc Haber) writes:
>> On 21 Feb 2004 14:11:41 +0100, Paul Seelig <pseelig@uni-mainz.de>
>> wrote:
>> >--------- snip -----------
>> >DPkg
>> >{
>> >Post-Invoke {"rm -rf /usr/share/doc/* /usr/share/man/* /usr/share/info/*";};
>> >};
>> >--------- snip -----------

>> Can dpkg handle the complete absence of these directory trees?

> I doubt it but then i haven't tried it out. Why not try it out for
> yourself and report?

<[🔎] Pine.LNX.4.44.0402171857570.6621-100000@gradall.private.brainfood.com>

How about this?

find /usr/share/doc /usr/share/man /usr/share/info -type f -not -empty \
-exec dd if=/dev/null of=\{\} \;

You could use a hardlink instead to save inodes.
                 cu andreas
-- 
Hey, da ist ein Ballonautomat auf der Toilette!
Unofficial _Debian-packages_ of latest unstable _tin_
http://www.logic.univie.ac.at/~ametzler/debian/tin-snapshot/



Reply to: