This file is indexed.

postinst is in perl 5.26.1-6ubuntu0.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
22
23
24
25
26
27
28
29
#!/bin/sh -e

if [ "$1" = configure ]
then
    # The 5.6.0 packages had /usr/share/doc/perl as a symlink to
    # perl-base, now the reverse.
    docs=/usr/share/doc
    if [ -L $docs/perl ] && [ ! -L $docs/perl-base ] && [ -d $docs/perl-base ]
    then
    rm -f $docs/perl
    mv $docs/perl-base $docs/perl
    ln -s perl $docs/perl-base
    fi

    # rename (and prename) is now only provided by the rename package
    update-alternatives --remove rename /usr/bin/prename

    if which dpkg-trigger >/dev/null 2>&1 && \
       [ -n "$2" ] && \
       dpkg --compare-versions "$2" lt 5.26.0~
    then
        dpkg-trigger --no-await perl-major-upgrade
    fi
fi

dpkg-maintscript-helper rm_conffile \
    /etc/perl/sitecustomize.pl 5.26.0~rc1-2~ perl -- "$@"

exit 0