prerm is in locales 2.23-0ubuntu3.
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 | #!/bin/sh
set -e
case "$1" in
remove|purge)
# This test should be kept only for compatibility with old
# locales-all packages, new ones don't use locale-archive.
if ! [ -f /usr/lib/locales-all/supported.tar.lzma ] ; then
# If locales-all is not installed, clean the locales
rm -f /usr/lib/locale/locale-archive
fi
;;
*)
;;
esac
exit 0
|