/usr/bin/update-mime-database is in shared-mime-info 1.5-2.
This file is owned by root:root, with mode 0o755.
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 | #!/bin/sh -e
# Since 0.51-2, we support dpkg triggers, so if this script
# was run from a maintainer script (postinst/postrm) and dpkg
# supports triggers, ignore it as dpkg will call the trigger
#
# Once all the maintainer scripts in the archive have stopped
# calling update-mime-database directly, we can remove this
# wrapper.
#
# See /usr/share/doc/dpkg-dev/triggers.txt.gz
if dpkg-trigger --check-supported >/dev/null 2>&1 && \
[ -n "$DPKG_RUNNING_VERSION" ] && \
[ "$1" = "/usr/share/mime" ]; then
exit 0
fi
# Otherwise, we have been manually called or there's no
# triggers support, so execute update-gconf-defaults
exec update-mime-database.real "$@"
|