blob: 7c32cd74baf5bf7d3d8c91f9446da116e735037b [file] [log] [blame]
.TH dpkg\-trigger 1 "2011-08-14" "Debian Project" "dpkg suite"
dpkg\-trigger \- a package trigger utility
.B dpkg\-trigger
.RI [ option "...] " trigger-name
.B dpkg\-trigger
.RI [ option "...] " command
\fBdpkg\-trigger\fP is a tool to explicitly activate triggers and check
for its support on the running \fBdpkg\fP.
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).
Unrecognised trigger name syntaxes are an error for \fBdpkg\-trigger\fP.
.BR \-\-check\-supported
Check if the running \fBdpkg\fP supports triggers (usually called from a
postinst). Will exit \fB0\fP if a triggers-capable \fBdpkg\fP has run,
or \fB1\fP with an error message to stderr if not. Normally, however,
it is better just to activate the desired trigger with \fBdpkg\-trigger\fP.
.BR \-h ", " \-\-help
Show the usage message and exit.
.B \-\-version
Show the version and exit.
.BI \-\-admindir= dir
Change the location of the \fBdpkg\fR database. The default location is
.BR \-\-by\-package=\fIpackage\fR
Override trigger awaiter (normally set by \fBdpkg\fP through the
\fBDPKG_MAINTSCRIPT_PACKAGE\fP environment variable of the maintainer scripts,
naming the package to which the script belongs, and this will be used
by default).
.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.
.BR \-\-no\-act
Just test, do not actually change anything.
If set and the \fB\-\-admindir\fP option has not been specified, it will
be used as the dpkg data directory.
.BR dpkg (1),
.BR deb\-triggers (5),
.BR /usr/share/doc/dpkg\-dev/triggers.txt.gz .