po: Update German man pages translation
[dpkg.git] / man / deb-preinst.pod
blob340909a51142d01aad7a03a1193ef34fd293ab86
1 # dpkg manual page - deb-preinst(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/>.
18 =encoding utf8
20 =head1 NAME
22 deb-preinst - package pre-installation maintainer script
24 =head1 SYNOPSIS
26 B<DEBIAN/preinst>
28 =head1 DESCRIPTION
30 A package can perform several pre-installation actions via maintainer
31 scripts, by including an executable I<preinst> file in its control
32 archive (i.e. I<DEBIAN/preinst> during package creation).
34 The script can be called in the following ways:
36 =over
38 =item I<new-preinst> B<install>
40 Before the package is installed.
42 =item I<new-preinst> B<install> I<old-version> I<new-version>
44 Before a removed package is upgraded.
46 The I<new-version> is passed only since dpkg 1.18.5.
48 =item I<new-preinst> B<upgrade> I<old-version> I<new-version>
50 Before the package is upgraded.
52 The I<new-version> is passed only since dpkg 1.18.5.
54 =item I<old-preinst> B<abort-upgrade> I<new-version>
56 If I<postrm> fails during upgrade or fails on failed upgrade.
58 =back
60 =head1 SEE ALSO
62 L<dpkg(1)>.