prerm is in python2.7 2.7.3-0ubuntu3.9.
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
#
# prerm script for the Debian python2.7-base package.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#
case "$1" in
remove|upgrade)
dpkg -L python2.7 \
| awk '/\.py$/ {print $0"c\n" $0"o"}' \
| xargs rm -f >&2
;;
deconfigure)
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
rmdir /usr/local/lib/python2.7/site-packages 2>/dev/null && \
rmdir /usr/local/lib/python2.7 2>/dev/null || \
true
|