1dpkg-trigger(1) dpkg suite dpkg-trigger(1)
2
3
4
6 dpkg-trigger - a package trigger utility
7
9 dpkg-trigger [option...] trigger-name
10
11 dpkg-trigger [option...] command
12
14 dpkg-trigger is a tool to explicitly activate triggers and check for
15 its support on the running dpkg.
16
17 This can be used by maintainer scripts in complex and conditional
18 situations where the file triggers, or the declarative activate
19 triggers control file directive, are insufficiently rich. It can also
20 be used for testing and by system administrators (but note that the
21 triggers won't actually be run by dpkg-trigger).
22
23 Unrecognized trigger name syntaxes are an error for dpkg-trigger.
24
26 --check-supported
27 Check if the running dpkg supports triggers (usually called from a
28 postinst). Will exit 0 if a triggers-capable dpkg has run, or 1
29 with an error message to stderr if not. Normally, however, it is
30 better just to activate the desired trigger with dpkg-trigger.
31
32 -?, --help
33 Show the usage message and exit.
34
35 --version
36 Show the version and exit.
37
39 --admindir=dir
40 Change the location of the dpkg database. Defaults to
41 /var/lib/dpkg if DPKG_ADMINDIR has not been set.
42
43 --root=directory
44 Set the root directory to directory, which sets the administrative
45 directory to «directory/var/lib/dpkg» (since dpkg 1.21.0).
46
47 --by-package=package
48 Override trigger awaiter (normally set by dpkg through the
49 DPKG_MAINTSCRIPT_PACKAGE environment variable of the maintainer
50 scripts, naming the package to which the script belongs, and this
51 will be used by default).
52
53 --no-await
54 This option arranges that the calling package T (if any) need not
55 await the processing of this trigger; the interested package(s) I,
56 will not be added to T's trigger processing awaited list and T's
57 status is unchanged. T may be considered installed even though I
58 may not yet have processed the trigger.
59
60 --await
61 This option does the inverse of --no-await (since dpkg 1.17.21).
62 If the interested package has declared a “noawait” directive, then
63 this option will not be effective. It is currently the default
64 behavior.
65
66 --no-act
67 Just test, do not actually change anything.
68
70 0 The requested action was successfully performed. Or a check or
71 assertion command returned true.
72
73 1 A check or assertion command returned false.
74
75 2 Fatal or unrecoverable error due to invalid command-line usage, or
76 interactions with the system, such as accesses to the database,
77 memory allocations, etc.
78
80 DPKG_ROOT
81 If set and the --root option has not been specified, it will be
82 used as the filesystem root directory (since dpkg 1.21.0).
83
84 DPKG_ADMINDIR
85 If set and the --admindir option has not been specified, it will be
86 used as the dpkg data directory.
87
88 DPKG_COLORS
89 Sets the color mode (since dpkg 1.18.5). The currently accepted
90 values are: auto (default), always and never.
91
93 dpkg(1), deb-triggers(5), /usr/share/doc/dpkg/triggers.txt.gz.
94
95
96
971.21.8 2022-05-25 dpkg-trigger(1)