165 lines
4.3 KiB
HTML
165 lines
4.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of dpkg-trigger</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>dpkg-trigger</H1>
|
|
Section: dpkg suite (1)<BR>Updated: 2020-03-23<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
dpkg-trigger - a package trigger utility
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>dpkg-trigger</B>
|
|
|
|
[<I>option</I>...] <I>trigger-name</I>
|
|
|
|
<BR>
|
|
|
|
<B>dpkg-trigger</B>
|
|
|
|
[<I>option</I>...] <I>command</I>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>dpkg-trigger</B> is a tool to explicitly activate triggers and check
|
|
for its support on the running <B>dpkg</B>.
|
|
<P>
|
|
|
|
This can be used by maintainer scripts in complex and conditional
|
|
situations where the file triggers, or the declarative <B>activate</B>
|
|
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 <B>dpkg-trigger</B>).
|
|
<P>
|
|
|
|
Unrecognized trigger name syntaxes are an error for <B>dpkg-trigger</B>.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>COMMANDS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>--check-supported</B>
|
|
|
|
<DD>
|
|
Check if the running <B>dpkg</B> supports triggers (usually called from a
|
|
postinst). Will exit <B>0</B> if a triggers-capable <B>dpkg</B> has run,
|
|
or <B>1</B> with an error message to stderr if not. Normally, however,
|
|
it is better just to activate the desired trigger with <B>dpkg-trigger</B>.
|
|
<DT id="2"><B>-?</B>, <B>--help</B>
|
|
|
|
<DD>
|
|
Show the usage message and exit.
|
|
<DT id="3"><B>--version</B>
|
|
|
|
<DD>
|
|
Show the version and exit.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="4"><B>--admindir=</B><I>dir</I>
|
|
|
|
<DD>
|
|
Change the location of the <B>dpkg</B> database. The default location is
|
|
<I>/var/lib/dpkg</I>.
|
|
<DT id="5"><B>--by-package=</B><I>package</I>
|
|
|
|
<DD>
|
|
Override trigger awaiter (normally set by <B>dpkg</B> through the
|
|
<B>DPKG_MAINTSCRIPT_PACKAGE</B> environment variable of the maintainer scripts,
|
|
naming the package to which the script belongs, and this will be used
|
|
by default).
|
|
<DT id="6"><B>--no-await</B>
|
|
|
|
<DD>
|
|
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.
|
|
<DT id="7"><B>--await</B>
|
|
|
|
<DD>
|
|
This option does the inverse of <B>--no-await</B> (since dpkg 1.17.21).
|
|
If the interested package has declared a "noawait" directive, then this
|
|
option will not be effective.
|
|
It is currently the default behavior.
|
|
<DT id="8"><B>--no-act</B>
|
|
|
|
<DD>
|
|
Just test, do not actually change anything.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>EXIT STATUS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="9"><B>0</B>
|
|
|
|
<DD>
|
|
The requested action was successfully performed.
|
|
Or a check or assertion command returned true.
|
|
<DT id="10"><B>1</B>
|
|
|
|
<DD>
|
|
A check or assertion command returned false.
|
|
<DT id="11"><B>2</B>
|
|
|
|
<DD>
|
|
Fatal or unrecoverable error due to invalid command-line usage, or
|
|
interactions with the system, such as accesses to the database,
|
|
memory allocations, etc.
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>ENVIRONMENT</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="12"><B>DPKG_ADMINDIR</B>
|
|
|
|
<DD>
|
|
If set and the <B>--admindir</B> option has not been specified, it will
|
|
be used as the <B>dpkg</B> data directory.
|
|
<DT id="13"><B>DPKG_COLORS</B>
|
|
|
|
<DD>
|
|
Sets the color mode (since dpkg 1.18.5).
|
|
The currently accepted values are: <B>auto</B> (default), <B>always</B> and
|
|
<B>never</B>.
|
|
</DL>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+dpkg">dpkg</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+deb-triggers">deb-triggers</A></B>(5),
|
|
|
|
|
|
<B>/usr/share/doc/dpkg-dev/triggers.txt.gz</B>.
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="14"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="15"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="16"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="17"><A HREF="#lbAE">COMMANDS</A><DD>
|
|
<DT id="18"><A HREF="#lbAF">OPTIONS</A><DD>
|
|
<DT id="19"><A HREF="#lbAG">EXIT STATUS</A><DD>
|
|
<DT id="20"><A HREF="#lbAH">ENVIRONMENT</A><DD>
|
|
<DT id="21"><A HREF="#lbAI">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:11 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|