postinst is in mime-support 3.59ubuntu1.
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 16 17 18 19 20 21 22 23 24 25 | #! /bin/sh -e
# dpkg triggers support for update-mime
if [ "$1" = "triggered" ]; then
test -x /usr/sbin/update-mime && /usr/sbin/update-mime --triggered
exit 0
fi
# Remove the old status directory (and any orphaned install-mime program)
rm -fr /var/lib/mime
rm -f /usr/sbin/install-mime
# Remove the "see" as alternative for "view"
# Closes: #623384
# This command can be removed after the Jessie release
update-alternatives --remove view /usr/bin/see
# Run the update program
if [ -x /usr/sbin/update-mime ]; then
/usr/sbin/update-mime --triggered
fi
|