preinst is in lib32tinfo5 5.9+20140913-1+deb8u3.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/bin/sh
set -e
PACKAGE=lib32tinfo5
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl 5.9-10; then
if [ -L /usr/share/doc/$PACKAGE ]; then
rm -f /usr/share/doc/$PACKAGE
fi
fi
exit 0
|