summaryrefslogtreecommitdiff
path: root/man/dpkg-trigger.1
blob: ca56ca19548eeb4b3eeaa37927aae0b8b621f007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.TH dpkg\-trigger 1 "2008-08-18" "Debian Project" "dpkg suite"
.SH NAME
dpkg\-trigger \- a package trigger utility
.
.SH SYNOPSIS
.B dpkg\-trigger
.RI [ option "...] " trigger-name
.br
.B dpkg\-trigger
.RI [ option "...] " command
.
.SH DESCRIPTION
\fBdpkg\-trigger\fP is a tool to explicitely activate triggers and check
for its support on the running \fBdpkg\fP.
.PP
This can be used by maintainer scripts in complex and conditional
situations where the file triggers, or the declarative \fBactivate\fP
triggers control file directive, are insufficiently rich. It can also
be used for testing and by system administrators (but note that the
triggers won't actually be run by \fBdpkg\-trigger\fP).
.PP
Unrecognised trigger name syntaxes are an error for \fBdpkg\-trigger\fP.
.
.SH COMMANDS
.TP
.BR \-\-check\-supported
Check if the running \fBdpkg\fP supports triggers (usually called from a
postinst). Will exit 0 if a triggers-capable \fBdpkg\fP has run, or 1 with
an error message to stderr if not. Normally, however, it is better just to
activate the desired trigger with \fBdpkg\-trigger\fP.
.TP
.BR \-h ", " \-\-help
Show the usage message and exit.
.TP
.B \-\-version
Show the version and exit.
.TP
.BR \-\-license ", " \-\-licence
Show the copyright licensing terms and exit.
.
.SH OPTIONS
.TP
.BI \-\-admindir= dir
Change the location of the \fBdpkg\fR database. The default location is
\fI/var/lib/dpkg\fP.
.TP
.BR \-\-by\-package=\fIpackage\fR
Override trigger awaiter (normally set by \fBdpkg\fP through the
DPKG_MAINTSCRIPT_PACKAGE environment variable of the maintainer scripts,
naming the package to which the script belongs, and this will be used
by default).
.TP
.BR \-\-no\-await
This option arranges that the calling package T (if any) need not await
the processing of this trigger; the interested package(s) I, will not be
added to T's trigger processing awaited list and T's status is unchanged.
T may be considered installed even though I may not yet have processed
the trigger.
.TP
.BR \-\-no\-act
Just test, do not actually change anything.
.
.SH SEE ALSO
.BR dpkg "(1), " deb-triggers "(5), " /usr/share/doc/dpkg/triggers.txt.gz .