po: Update German man pages translation
[dpkg.git] / man / dpkg-trigger.pod
blobb5757482f5acf7663aae52d052e7abc6e8180dfa
1 # dpkg manual page - dpkg-trigger(1)
3 # Copyright © 2008-2015 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 dpkg-trigger - a package trigger utility
24 =head1 SYNOPSIS
26 B<dpkg-trigger>
27 [I<option>...] I<trigger-name>
29 B<dpkg-trigger>
30 [I<option>...] I<command>
32 =head1 DESCRIPTION
34 B<dpkg-trigger> is a tool to explicitly activate triggers and check
35 for its support on the running B<dpkg>.
37 This can be used by maintainer scripts in complex and conditional
38 situations where the file triggers, or the declarative B<activate>
39 triggers control file directive, are insufficiently rich. It can also
40 be used for testing and by system administrators (but note that the
41 triggers won't actually be run by B<dpkg-trigger>).
43 Unrecognized trigger name syntaxes are an error for B<dpkg-trigger>.
45 =head1 COMMANDS
47 =over
49 =item B<--check-supported>
51 Check if the running B<dpkg> supports triggers (usually called from a
52 postinst). Will exit B<0> if a triggers-capable B<dpkg> has run,
53 or B<1> with an error message to stderr if not. Normally, however,
54 it is better just to activate the desired trigger with B<dpkg-trigger>.
56 =item B<-?>, B<--help>
58 Show the usage message and exit.
60 =item B<--version>
62 Show the version and exit.
64 =back
66 =head1 OPTIONS
68 =over
70 =item B<--admindir=>I<dir>
72 Change the location of the B<dpkg> database.
73 Defaults to I<%ADMINDIR%> if B<DPKG_ADMINDIR> has not been set.
75 =item B<--root=>I<directory>
77 Set the root directory to I<directory>, which sets the administrative
78 directory to «I<directory>%ADMINDIR%» (since dpkg 1.21.0).
80 =item B<--by-package=>I<package>
82 Override trigger awaiter (normally set by B<dpkg> through the
83 B<DPKG_MAINTSCRIPT_PACKAGE> environment variable of the maintainer scripts,
84 naming the package to which the script belongs, and this will be used
85 by default).
87 =item B<--no-await>
89 This option arranges that the calling package I<T> (if any) need not await
90 the processing of this trigger; the interested package(s) I<I>, will not be
91 added to I<T>'s trigger processing awaited list and I<T>'s status is unchanged.
92 I<T> may be considered installed even though I<I> may not yet have
93 processed the trigger.
95 =item B<--await>
97 This option does the inverse of B<--no-await> (since dpkg 1.17.21).
98 If the interested package has declared a “noawait” directive, then this
99 option will not be effective.
100 It is currently the default behavior.
102 =item B<--no-act>
104 Just test, do not actually change anything.
106 =back
108 =head1 EXIT STATUS
110 =over
112 =item B<0>
114 The requested action was successfully performed.
115 Or a check or assertion command returned true.
117 =item B<1>
119 A check or assertion command returned false.
121 =item B<2>
123 Fatal or unrecoverable error due to invalid command-line usage, or
124 interactions with the system, such as accesses to the database,
125 memory allocations, etc.
127 =back
129 =head1 ENVIRONMENT
131 =over
133 =item B<DPKG_ROOT>
135 If set and the B<--root> option has not been specified, it will be used as
136 the filesystem root directory (since dpkg 1.21.0).
138 =item B<DPKG_ADMINDIR>
140 If set and the B<--admindir> option has not been specified, it will
141 be used as the B<dpkg> data directory.
143 =item B<DPKG_DEBUG>
145 Sets the debug mask (since dpkg 1.21.10) from an octal value.
146 The currently accepted flags are described in the B<dpkg --debug> option,
147 but not all these flags might have an effect on this program.
149 =item B<DPKG_COLORS>
151 Sets the color mode (since dpkg 1.18.5).
152 The currently accepted values are: B<auto> (default), B<always> and
153 B<never>.
155 =back
157 =head1 SEE ALSO
159 B<dpkg>(1),
160 B<deb-triggers>(5),
161 B<%PKGDOCDIR%/spec/triggers.txt>.