.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "dpkg-trigger 1" .TH dpkg-trigger 1 "2022-09-01" "1.20.12" "dpkg suite" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" dpkg\-trigger \- a package trigger utility .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBdpkg-trigger\fR [\fIoption\fR...] \fItrigger-name\fR .PP \&\fBdpkg-trigger\fR [\fIoption\fR...] \fIcommand\fR .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBdpkg-trigger\fR is a tool to explicitly activate triggers and check for its support on the running \fBdpkg\fR. .PP This can be used by maintainer scripts in complex and conditional situations where the file triggers, or the declarative \fBactivate\fR 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\fR). .PP Unrecognized trigger name syntaxes are an error for \fBdpkg-trigger\fR. .SH "COMMANDS" .IX Header "COMMANDS" .IP "\fB\-\-check\-supported\fR" 4 .IX Item "--check-supported" Check if the running \fBdpkg\fR supports triggers (usually called from a postinst). Will exit \fB0\fR if a triggers-capable \fBdpkg\fR has run, or \fB1\fR with an error message to stderr if not. Normally, however, it is better just to activate the desired trigger with \fBdpkg-trigger\fR. .IP "\fB\-?\fR, \fB\-\-help\fR" 4 .IX Item "-?, --help" Show the usage message and exit. .IP "\fB\-\-version\fR" 4 .IX Item "--version" Show the version and exit. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-\-admindir=\fR\fIdir\fR" 4 .IX Item "--admindir=dir" Change the location of the \fBdpkg\fR database. The default location is \&\fI/var/lib/dpkg\fR. .IP "\fB\-\-by\-package=\fR\fIpackage\fR" 4 .IX Item "--by-package=package" Override trigger awaiter (normally set by \fBdpkg\fR through the \&\fB\s-1DPKG_MAINTSCRIPT_PACKAGE\s0\fR environment variable of the maintainer scripts, naming the package to which the script belongs, and this will be used by default). .IP "\fB\-\-no\-await\fR" 4 .IX Item "--no-await" This option arranges that the calling package \fIT\fR (if any) need not await the processing of this trigger; the interested package(s) \fII\fR, will not be added to \fIT\fR's trigger processing awaited list and \fIT\fR's status is unchanged. \&\fIT\fR may be considered installed even though \fII\fR may not yet have processed the trigger. .IP "\fB\-\-await\fR" 4 .IX Item "--await" This option does the inverse of \fB\-\-no\-await\fR (since dpkg 1.17.21). If the interested package has declared a \(lqnoawait\(rq directive, then this option will not be effective. It is currently the default behavior. .IP "\fB\-\-no\-act\fR" 4 .IX Item "--no-act" Just test, do not actually change anything. .SH "EXIT STATUS" .IX Header "EXIT STATUS" .IP "\fB0\fR" 4 .IX Item "0" The requested action was successfully performed. Or a check or assertion command returned true. .IP "\fB1\fR" 4 .IX Item "1" A check or assertion command returned false. .IP "\fB2\fR" 4 .IX Item "2" Fatal or unrecoverable error due to invalid command-line usage, or interactions with the system, such as accesses to the database, memory allocations, etc. .SH "ENVIRONMENT" .IX Header "ENVIRONMENT" .IP "\fB\s-1DPKG_ADMINDIR\s0\fR" 4 .IX Item "DPKG_ADMINDIR" If set and the \fB\-\-admindir\fR option has not been specified, it will be used as the \fBdpkg\fR data directory. .IP "\fB\s-1DPKG_COLORS\s0\fR" 4 .IX Item "DPKG_COLORS" Sets the color mode (since dpkg 1.18.5). The currently accepted values are: \fBauto\fR (default), \fBalways\fR and \&\fBnever\fR. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdpkg\fR(1), \&\fBdeb-triggers\fR(5), \&\fB/usr/share/doc/dpkg/triggers.txt.gz\fR.