{
    "content": [
        {
            "type": "text",
            "text": "# dpkg-trigger (man)\n\n## NAME\n\ndpkg-trigger - a package trigger utility\n\n## SYNOPSIS\n\ndpkg-trigger [option...] trigger-name\ndpkg-trigger [option...] command\n\n## DESCRIPTION\n\ndpkg-trigger is a tool to explicitly activate triggers and check for its support on the\nrunning dpkg.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **COMMANDS** (2 subsections)\n- **OPTIONS** (3 subsections)\n- **EXIT STATUS**\n- **ENVIRONMENT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "dpkg-trigger",
        "section": "",
        "mode": "man",
        "summary": "dpkg-trigger - a package trigger utility",
        "synopsis": "dpkg-trigger [option...] trigger-name\ndpkg-trigger [option...] command",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": "--no-await",
                "arg": null,
                "description": "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."
            },
            {
                "flag": "",
                "long": "--await",
                "arg": null,
                "description": "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."
            },
            {
                "flag": "",
                "long": "--no-act",
                "arg": null,
                "description": "Just test, do not actually change anything."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "dpkg",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg/1/json"
            },
            {
                "name": "deb-triggers",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-triggers/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "COMMANDS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "--check-supported",
                        "lines": 7,
                        "long": "--check-supported"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "OPTIONS",
                "lines": 12,
                "subsections": [
                    {
                        "name": "--no-await",
                        "lines": 5,
                        "long": "--no-await"
                    },
                    {
                        "name": "--await",
                        "lines": 4,
                        "long": "--await"
                    },
                    {
                        "name": "--no-act",
                        "lines": 2,
                        "long": "--no-act"
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "dpkg-trigger - a package trigger utility\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "dpkg-trigger [option...] trigger-name\n\ndpkg-trigger [option...] command\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "dpkg-trigger is a tool to explicitly activate triggers and check for its support on the\nrunning dpkg.\n\nThis can be used by maintainer scripts in complex and conditional situations where the file\ntriggers, or the declarative activate triggers control file directive, are insufficiently\nrich. It can also be used for testing and by system administrators (but note that the\ntriggers won't actually be run by dpkg-trigger).\n\nUnrecognized trigger name syntaxes are an error for dpkg-trigger.\n",
                "subsections": []
            },
            "COMMANDS": {
                "content": "",
                "subsections": [
                    {
                        "name": "--check-supported",
                        "content": "Check if the running dpkg supports triggers (usually called from a postinst). Will exit 0\nif a triggers-capable dpkg has run, or 1 with an error message to stderr if not.\nNormally, however, it is better just to activate the desired trigger with dpkg-trigger.\n\n-?, --help\nShow the usage message and exit.\n",
                        "long": "--check-supported"
                    },
                    {
                        "name": "--version",
                        "content": "Show the version and exit.\n",
                        "long": "--version"
                    }
                ]
            },
            "OPTIONS": {
                "content": "--admindir=dir\nChange the location of the dpkg database. The default location is /var/lib/dpkg.\n\n--root=directory\nSet the root directory to directory, which sets the administrative directory to\n«directory/var/lib/dpkg» (since dpkg 1.21.0).\n\n--by-package=package\nOverride trigger awaiter (normally set by dpkg through the DPKGMAINTSCRIPTPACKAGE\nenvironment variable of the maintainer scripts, naming the package to which the script\nbelongs, and this will be used by default).\n",
                "subsections": [
                    {
                        "name": "--no-await",
                        "content": "This option arranges that the calling package T (if any) need not await the processing of\nthis trigger; the interested package(s) I, will not be added to T's trigger processing\nawaited list and T's status is unchanged.  T may be considered installed even though I\nmay not yet have processed the trigger.\n",
                        "long": "--no-await"
                    },
                    {
                        "name": "--await",
                        "content": "This option does the inverse of --no-await (since dpkg 1.17.21).  If the interested\npackage has declared a “noawait” directive, then this option will not be effective.  It\nis currently the default behavior.\n",
                        "long": "--await"
                    },
                    {
                        "name": "--no-act",
                        "content": "Just test, do not actually change anything.\n",
                        "long": "--no-act"
                    }
                ]
            },
            "EXIT STATUS": {
                "content": "0   The requested action was successfully performed.  Or a check or assertion command\nreturned true.\n\n1   A check or assertion command returned false.\n\n2   Fatal or unrecoverable error due to invalid command-line usage, or interactions with the\nsystem, such as accesses to the database, memory allocations, etc.\n",
                "subsections": []
            },
            "ENVIRONMENT": {
                "content": "DPKGROOT\nIf set and the --root option has not been specified, it will be used as the filesystem\nroot directory (since dpkg 1.21.0).\n\nDPKGADMINDIR\nIf set and the --admindir option has not been specified, it will be used as the dpkg data\ndirectory.\n\nDPKGCOLORS\nSets the color mode (since dpkg 1.18.5).  The currently accepted values are: auto\n(default), always and never.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "dpkg(1), deb-triggers(5), /usr/share/doc/dpkg/triggers.txt.gz.\n\n\n\n1.21.1                                       2025-09-09                              dpkg-trigger(1)",
                "subsections": []
            }
        }
    }
}