1 # dpkg manual page - deb-postinst(5)
3 # Copyright © 2016 Guillem Jover <guillem@debian.org>
5 # This is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <https://www.gnu.org/licenses/>.
22 deb-postinst - package post-installation maintainer script
30 A package can perform several post-installation actions via maintainer
31 scripts, by including an executable I<postinst> file in its control
32 archive (i.e. I<DEBIAN/postinst> during package creation).
34 The script can be called in the following ways:
38 =item I<postinst> B<configure> I<old-version>
40 After the package was installed.
42 =item I<postinst> B<triggered> "I<trigger-name...>"
44 After the package was triggered.
45 The list of space-separated I<trigger-name>s is passed as the second
48 =item I<old-postinst> B<abort-upgrade> I<new-version>
50 If I<prerm> fails during B<upgrade> or fails on B<failed-upgrade>.
52 =item I<old-postinst> B<abort-remove>
54 If I<prerm> fails during B<remove>.
56 =item I<postinst> B<abort-deconfigure> B<in-favour> I<new-package> I<new-version>
58 =item S< >[ B<removing> I<old-package> I<old-version> ]
60 If I<prerm> fails during B<deconfigure in-favour> of a package.
62 =item I<postinst> B<abort-remove> B<in-favour> I<new-package> I<new-version>
64 If I<prerm> fails during B<remove in-favour> for replacement due to conflict.