This file is indexed.

prerm is in python-gtk2-dev 2.24.0-3.

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
#!/bin/sh

set -e

PYTHON_DEFAULT=$(pyversions --default)

this="python-gtk2-dev"

pc_files() {
    runtime="$1"

    dpkg -L "$this" | sed -n -e "s#^/usr/lib/pkgconfig/$runtime/##p"
}

if [ "$1" = "remove" ]; then
    cd /usr/lib/pkgconfig

    for f in $(pc_files $PYTHON_DEFAULT); do
        rm -f "$f"
    done
fi