postrm is in dash 0.5.7-2ubuntu2.
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 | #!/bin/sh
set -e
test "$1" != 'upgrade' || dpkg --compare-versions "$2" ge 0.5.2-3 || \
test ! -x /usr/bin/update-menus || exec update-menus
test "$1" != 'remove' || test ! -x /usr/bin/update-menus || exec update-menus
test "$1" = 'purge' || exit 0
test -e /usr/share/debconf/confmodule || exit 0
. /usr/share/debconf/confmodule
db_purge
|