dpkg (1.18.25) stretch; urgency=medium
[dpkg] / man / deb-triggers.man
CommitLineData
1479465f
GJ
1.\" dpkg manual page - deb-triggers(5)
2.\"
3.\" Copyright © 2008, 2013-2015 Guillem Jover <guillem@debian.org>
4.\" Copyright © 2011, 2014 Raphaël Hertzog <hertzog@debian.org>
5.\"
6.\" This is free software; you can redistribute it and/or modify
7.\" it under the terms of the GNU General Public License as published by
8.\" the Free Software Foundation; either version 2 of the License, or
9.\" (at your option) any later version.
10.\"
11.\" This is distributed in the hope that it will be useful,
12.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
13.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14.\" GNU General Public License for more details.
15.\"
16.\" You should have received a copy of the GNU General Public License
17.\" along with this program. If not, see <https://www.gnu.org/licenses/>.
18.
19.TH deb\-triggers 5 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
20.nh
21.SH NAME
22deb\-triggers \- package triggers
23.
24.SH SYNOPSIS
25triggers
26.
27.SH DESCRIPTION
28A package declares its relationship to some trigger(s) by including
29a \fItriggers\fP file in its control archive (i.e. \fIDEBIAN/triggers\fP
30during package creation).
31.PP
32This file contains directives, one per line. Leading and trailing whitespace
33and everything after the first \fB#\fP on any line will be trimmed, and
34empty lines will be ignored.
35.PP
36The trigger control directives currently supported are:
37.TP
38\fBinterest\fP \fItrigger-name\fP
39.TQ
40\fBinterest\-await\fP \fItrigger-name\fP
41.TQ
42\fBinterest\-noawait\fP \fItrigger-name\fP
43.IP
44Specifies that the package is interested in the named trigger. All
45triggers in which a package is interested must be listed using this
46directive in the triggers control file. The “noawait” variant does
47not put the triggering packages in triggers\-awaited state. This should
48be used when the functionality provided by the trigger is not crucial.
49.TP
50\fBactivate\fP \fItrigger-name\fP
51.TQ
52\fBactivate\-await\fP \fItrigger-name\fP
53.TQ
54\fBactivate\-noawait\fP \fItrigger-name\fP
55.IP
56Arranges that changes to this package's state will activate the
57specified trigger. The trigger will be activated at the start of
58the following operations: unpack, configure, remove (including for
59the benefit of a conflicting package), purge and deconfigure.
60The “noawait” variant does not put the triggering packages in
61triggers\-awaited state. This should be used when the functionality
62provided by the trigger is not crucial.
63.IP
64If this package disappears during the unpacking of another package
65the trigger will be activated when the disappearance is noted
66towards the end of the unpack. Trigger processing, and transition
67from triggers\-awaited to installed, does not cause activations.
68In the case of unpack, triggers mentioned in both the old and new
69versions of the package will be activated.
70.PP
71Unknown directives are an error which will prevent installation of the
72package.
73.PP
74The “\-noawait” variants should always be favored when possible since
75triggering packages are not put in triggers\-awaited state and can thus
76be immediately configured without requiring the processing of the trigger.
77If the triggering packages are dependencies of other upgraded packages,
78it will avoid an early trigger processing run and make it possible
79to run the trigger only once as one of the last steps of the upgrade.
80.PP
81The “\-noawait” variants are only supported since dpkg 1.16.1, and
82will lead to errors if used with an older dpkg. It is thus recommended
83to add a “Pre\-Depends: dpkg (>= 1.16.1)” to any package that wish to use
84those directives.
85.PP
86The “\-await” alias variants are only supported since dpkg 1.17.21, and
87will lead to errors if used with an older dpkg. It is thus recommended
88to add a “Pre\-Depends: dpkg (>= 1.17.21)” to any package that wish to use
89those directives.
90.
91.SH SEE ALSO
92.BR dpkg\-trigger (1),
93.BR dpkg (1),
94.\" FIXME: Unhardcode the pathname, and use dpkg instead of dpkg-dev.
95.BR /usr/share/doc/dpkg\-dev/triggers.txt.gz .