This file is indexed.

prerm is in libpetsc3.1-dev 3.1.dfsg-11ubuntu1.

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

# Remove alternatives links
if [ "$1" = "remove" ]; then
  update-alternatives --remove petsc /usr/lib/petscdir/3.1
  update-alternatives --remove math-blaslapack.m4 /usr/lib/petscdir/3.1/aclocal/math-blaslapack.m4
  # Somewhat inelegant, but there's no test for empty dir
  if [ -z "`ls /usr/share/aclocal`" ]; then
    rmdir /usr/share/aclocal
  fi
fi