dpkg-trigger(1)
๐ dpkg-trigger(1) โ the dpkg suite's own trigger utility, bestie
Okay so welcome to dpkg-trigger(1), straight out of the dpkg suite โจ this is the page where we learn how to poke triggers on purpose. Buckle up ๐
๐ธ SYNOPSIS ๐ธ
dpkg-trigger [option...] trigger-name
dpkg-trigger [option...] command
๐ DESCRIPTION ๐
dpkg-trigger is the tool that lets you explicitly activate triggers and also check whether the dpkg you're running even supports them. Two jobs, one slay little binary ๐ซถ
So why would you need this? Because maintainer scripts sometimes get into complex and conditional situations where file triggers โ or the declarative activate triggers control file directive โ are just not rich enough. Like, they tried their best, but no ๐ญ It's also handy for testing, and for system administrators, but heads up: the triggers won't actually be run by dpkg-trigger, bestie. It activates, it doesn't execute. Know the difference ๐
Also, if you feed it an unrecognized trigger name syntax, that's an error. Not a vibe. It will not be chill about it.
This program was introduced in dpkg 1.14.17 โญ (so she's an icon, she's a legend, she's been here a while).
๐ COMMANDS ๐
--check-supportedโ Checks if the running dpkg supports triggers (usually called from apostinst). Exits0if a triggers-capable dpkg has run, or1with an error message to stderr if not. Normally though? It's better to just activate the trigger you want withdpkg-triggerand move on. Periodt.-?,--helpโ Shows the usage message and exits. Our little cry for help ๐ฅบ--versionโ Shows the version and exits. Main character reveal ๐
โจ OPTIONS โจ
--admindir=dir โ Changes the location of the dpkg database. Defaults to/var/lib/dpkgifDPKG_ADMINDIRhas not been set. Moving house, but make it databases ๐--root=directory โ Sets the root directory to directory, which sets the administrative directory toยซdirectory/var/lib/dpkgยป. Supported sincedpkg 1.21.0๐ฆ--by-package=package โ Overrides the trigger awaiter (normally set by dpkg through theDPKG_MAINTSCRIPT_PACKAGEenvironment variable of the maintainer scripts, naming the package to which the script belongs, and this will be used by default). Basically: overriding who's waiting on this, iykyk ๐--no-awaitโ This option arranges that the calling packageT(if any) need not await the processing of this trigger; the interested package(s)I, will not be added toT's trigger processing awaited list andT's status is unchanged.Tmay be considered installed even thoughImay not yet have processed the trigger. She's not waiting around, she has things to do ๐--awaitโ Does the inverse of--no-await. If the interested package has declared aโnoawaitโdirective, then this option will not be effective. It is currently the default behavior. Supported sincedpkg 1.17.21๐ธ--no-actโ Just test, do not actually change anything. The "look but don't touch" of flags ๐
๐ฅ EXIT STATUS ๐ฅ
0โ The requested action was successfully performed. Or a check or assertion command returned true. Slay โ1โ A check or assertion command returned false. Rip ๐ญ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. Bad vibes only ๐
๐ ENVIRONMENT ๐
DPKG_ROOTโ If set and the--rootoption has not been specified, it will be used as the filesystem root directory. Supported sincedpkg 1.21.0๐งDPKG_ADMINDIRโ If set and the--admindiroption has not been specified, it will be used as the dpkg data directory. ๐DPKG_DEBUGโ Sets the debug mask from an octal value. The currently accepted flags are described in thedpkg --debugoption, but not all these flags might have an effect on this program. Supported sincedpkg 1.21.10๐DPKG_COLORSโ Sets the color mode. The currently accepted values are:auto(default),alwaysandnever. Supported sincedpkg 1.18.5๐ (aesthetic matters!)DPKG_NLSโ If set, it will be used to decide whether to activate Native Language Support, also known as internationalization (or i18n) support. The accepted values are:0and1(default). Supported sincedpkg 1.22.7๐
๐ฆ SEE ALSO ๐ฆ
dpkg(1)deb-triggers(5)/usr/share/doc/dpkg/spec/triggers.txt
๐ Friendly reminder bestie: dpkg-trigger activates triggers and checks support โ it does not run them. Don't come for me when the trigger hasn't fired, I warned you ๐ซถ
Anyway, that's the whole page! This masterpiece is from the 1.23.11-dirty era, dated 2026-09-09, and it's brought to you by the dpkg suite itself. Go activate something cute โจ๐ ๐
๐ฆ where this page comes from
- arch rolling: dpkg 1.23.11-1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms