This file is indexed.

preinst is in binutils-gold 2.22-6ubuntu1.

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

set -e

if [ install = "$1" -o upgrade = "$1" ]; then
    if [ -n "$2" ] && dpkg --compare-versions $2 lt 2.20-3; then
	case "$(dpkg-divert --list /usr/bin/ld)" in
	    *ld.single*)
		rm -f /usr/bin/ld
		dpkg-divert \
		  --package binutils-gold \
		  --remove --rename \
		  --divert /usr/bin/ld.single /usr/bin/ld
	esac
    fi

    dpkg-divert \
	--package binutils-gold \
	--add --rename \
	--divert /usr/bin/ld.bfd-link /usr/bin/ld
    dpkg-divert \
	--package binutils-gold \
	--add --rename \
	--divert /usr/share/man/man1/ld.bfd-link.1.gz /usr/share/man/man1/ld.1.gz
fi