dpkg-trigger(1) — Linux manual page


dpkg-trigger(1)                dpkg suite                dpkg-trigger(1)

NAME         top

       dpkg-trigger - a package trigger utility

SYNOPSIS         top

       dpkg-trigger [option...] trigger-name

       dpkg-trigger [option...] command

DESCRIPTION         top

       dpkg-trigger is a tool to explicitly activate triggers and check
       for its support on the running dpkg.

       This can be used by maintainer scripts in complex and conditional
       situations where the file triggers, or the declarative activate
       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 dpkg-trigger).

       Unrecognized trigger name syntaxes are an error for dpkg-trigger.

       This program was introduced in dpkg 1.14.17.

COMMANDS         top

           Check if the running dpkg supports triggers (usually called
           from a postinst). Will exit 0 if a triggers-capable dpkg has
           run, or 1 with an error message to stderr if not. Normally,
           however, it is better just to activate the desired trigger
           with dpkg-trigger.

       -?, --help
           Show the usage message and exit.

           Show the version and exit.

OPTIONS         top

           Change the location of the dpkg database.  Defaults to
           /usr/local/var/lib/dpkg if DPKG_ADMINDIR has not been set.

           Set the root directory to directory, which sets the
           administrative directory to
           «directory/usr/local/var/lib/dpkg» (since dpkg 1.21.0).

           Override trigger awaiter (normally set by dpkg 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).

           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.

           This option does the inverse of --no-await (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.

           Just test, do not actually change anything.

EXIT STATUS         top

       0   The requested action was successfully performed.  Or a check
           or assertion command returned true.

       1   A check or assertion command returned false.

       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.

ENVIRONMENT         top

           If set and the --root option has not been specified, it will
           be used as the filesystem root directory (since dpkg 1.21.0).

           If set and the --admindir option has not been specified, it
           will be used as the dpkg data directory.

           Sets the debug mask (since dpkg 1.21.10) from an octal value.
           The currently accepted flags are described in the dpkg
           --debug option, but not all these flags might have an effect
           on this program.

           Sets the color mode (since dpkg 1.18.5).  The currently
           accepted values are: auto (default), always and never.

SEE ALSO         top

       dpkg(1), deb-triggers(5),

COLOPHON         top

       This page is part of the dpkg (Debian Package Manager) project.
       Information about the project can be found at 
       ⟨https://wiki.debian.org/Teams/Dpkg/⟩.  If you have a bug report
       for this manual page, see
       ⟨http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=dpkg⟩.  This
       page was obtained from the project's upstream Git repository ⟨git
       clone https://git.dpkg.org/git/dpkg/dpkg.git⟩ on 2023-12-22.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2023-12-18.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there
       is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to

1.22.0-52-g1af0                2023-08-30                dpkg-trigger(1)

Pages that refer to this page: deb-triggers(5)