This file is indexed.

postrm is in usermetricsservice 1.1.1+14.04.20140305-0ubuntu2.

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

if [ "$1" = "purge" ] ; then
        if getent passwd usermetrics >/dev/null; then
                if [ -x /usr/sbin/deluser ]; then
                        deluser --system usermetrics
                fi
        fi

        if getent group usermetrics >/dev/null; then
                if [ -x /usr/sbin/delgroup ]; then
                        delgroup --system usermetrics
                fi
        fi

        # we cannot use the --remove-home option when we delete the user above
        # because it will refuse to remove things in /var, so clean it up this
        # way
        if [ -d /var/lib/usermetrics ]; then
                rm -r /var/lib/usermetrics
        fi

fi

exit 0