{
    "mode": "man",
    "parameter": "dpkg-genchanges",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/dpkg-genchanges/1/json",
    "generated": "2026-07-05T11:55:28Z",
    "synopsis": "dpkg-genchanges [option...]",
    "sections": {
        "NAME": {
            "content": "dpkg-genchanges - generate Debian .changes files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "dpkg-genchanges [option...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "dpkg-genchanges reads information from an unpacked and built Debian source tree and from the\nfiles it has generated and generates a Debian upload control file (.changes file).\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "--build=type\nSpecifies the build type from a comma-separated list of components (since dpkg 1.18.5).\n\nThe allowed values are:\n\nsource\nUpload the source package.\n\nany Upload the architecture specific binary packages.\n\nall Upload the architecture independent binary packages.\n\nbinary\nUpload the architecture specific and independent binary packages.  This is an alias\nfor any,all.\n\nfull\nUpload everything.  This is alias for source,any,all, and the same as the default\ncase when no build option is specified.\n",
            "subsections": [
                {
                    "name": "-g --build=source,all",
                    "content": "",
                    "flag": "-g",
                    "long": "--build",
                    "arg": "source,all"
                },
                {
                    "name": "-G --build=source,any",
                    "content": "",
                    "flag": "-G",
                    "long": "--build",
                    "arg": "source,any"
                },
                {
                    "name": "-b --build=binary --build=any,all",
                    "content": "",
                    "flag": "-b",
                    "long": "--build",
                    "arg": "any,all"
                },
                {
                    "name": "-B --build=any",
                    "content": "",
                    "flag": "-B",
                    "long": "--build",
                    "arg": "any"
                },
                {
                    "name": "-A --build=all",
                    "content": "",
                    "flag": "-A",
                    "long": "--build",
                    "arg": "all"
                },
                {
                    "name": "-S --build=source",
                    "content": "The -sx options control whether the original source archive is included in the upload if any\nsource is being generated (i.e.  -b or -B haven't been used).\n",
                    "flag": "-S",
                    "long": "--build",
                    "arg": "source"
                },
                {
                    "name": "-si",
                    "content": "version number (the version without epoch and without Debian revision) differs from the\nupstream version number of the previous changelog entry.\n"
                },
                {
                    "name": "-sa",
                    "content": ""
                },
                {
                    "name": "-sd",
                    "content": ""
                },
                {
                    "name": "-v",
                    "content": "Causes changelog information from all versions strictly later than version to be used.\n",
                    "flag": "-v"
                },
                {
                    "name": "-C",
                    "content": "Read the description of the changes from the file changes-description rather than using\nthe information from the source tree's changelog file.\n",
                    "flag": "-C"
                },
                {
                    "name": "-m",
                    "content": "Use maintainer-address as the name and email address of the maintainer for this package,\nrather than using the information from the source tree's control file.\n",
                    "flag": "-m"
                },
                {
                    "name": "-e",
                    "content": "Use maintainer-address as the name and email address of the maintainer for this upload,\nrather than using the information from the source tree's changelog.\n",
                    "flag": "-e"
                },
                {
                    "name": "-V",
                    "content": "Set an output substitution variable.  See deb-substvars(5) for a discussion of output\nsubstitution.\n",
                    "flag": "-V"
                },
                {
                    "name": "-T",
                    "content": "Read substitution variables in substvars-file; the default is debian/substvars.  No\nvariable substitution is done on any of the fields that are output, except for the\ncontents extracted from each binary package Description field (since dpkg 1.19.0),\nhowever the special variable Format will override the field of the same name.  This\noption can be used multiple times to read substitution variables from multiple files\n(since dpkg 1.15.6).\n",
                    "flag": "-T"
                },
                {
                    "name": "-D",
                    "content": "Override or add an output control file field.\n",
                    "flag": "-D"
                },
                {
                    "name": "-U",
                    "content": "Remove an output control file field.\n",
                    "flag": "-U"
                },
                {
                    "name": "-c",
                    "content": "Specifies the main source control file to read information from. The default is\ndebian/control.\n",
                    "flag": "-c"
                },
                {
                    "name": "-l",
                    "content": "Specifies the changelog file to read information from. The default is debian/changelog.\n",
                    "flag": "-l"
                },
                {
                    "name": "-f",
                    "content": "Read the list of files to be uploaded here, rather than using debian/files.\n",
                    "flag": "-f"
                },
                {
                    "name": "-F",
                    "content": "Specifies the format of the changelog. See dpkg-parsechangelog(1) for information about\nalternative formats.\n",
                    "flag": "-F"
                },
                {
                    "name": "-u",
                    "content": "Look for the files to be uploaded in upload-files-dir rather than ..  (dpkg-genchanges\nneeds to find these files so that it can include their sizes and checksums in the\n.changes file).\n",
                    "flag": "-u"
                },
                {
                    "name": "-q",
                    "content": "about how many of the package's source files are being uploaded.  -q suppresses these\nmessages.\n",
                    "flag": "-q"
                },
                {
                    "name": "-O",
                    "content": "Print the changes file to standard output (the default) or to filename if specified\n(since dpkg 1.18.5).\n\n-?, --help\nShow the usage message and exit.\n",
                    "flag": "-O"
                },
                {
                    "name": "--version",
                    "content": "Show the version and exit.\n",
                    "long": "--version"
                }
            ]
        },
        "ENVIRONMENT": {
            "content": "DPKGCOLORS\nSets the color mode (since dpkg 1.18.5).  The currently accepted values are: auto\n(default), always and never.\n\nDPKGNLS\nIf set, it will be used to decide whether to activate Native Language Support, also known\nas internationalization (or i18n) support (since dpkg 1.19.0).  The accepted values are:\n0 and 1 (default).\n",
            "subsections": []
        },
        "FILES": {
            "content": "",
            "subsections": [
                {
                    "name": "debian/files",
                    "content": "The list of generated files which are part of the upload being prepared.  dpkg-genchanges\nreads the data here when producing a .changes file.\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "deb-substvars(5), deb-src-control(5), deb-src-files(5), deb-changelog(5), deb-changes(5).\n\n\n\n1.21.1                                       2025-09-09                           dpkg-genchanges(1)",
            "subsections": []
        }
    },
    "summary": "dpkg-genchanges - generate Debian .changes files",
    "flags": [
        {
            "flag": "-g",
            "long": "--build",
            "arg": "source,all",
            "description": ""
        },
        {
            "flag": "-G",
            "long": "--build",
            "arg": "source,any",
            "description": ""
        },
        {
            "flag": "-b",
            "long": "--build",
            "arg": "any,all",
            "description": ""
        },
        {
            "flag": "-B",
            "long": "--build",
            "arg": "any",
            "description": ""
        },
        {
            "flag": "-A",
            "long": "--build",
            "arg": "all",
            "description": ""
        },
        {
            "flag": "-S",
            "long": "--build",
            "arg": "source",
            "description": "The -sx options control whether the original source archive is included in the upload if any source is being generated (i.e. -b or -B haven't been used)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "version number (the version without epoch and without Debian revision) differs from the upstream version number of the previous changelog entry."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": "Causes changelog information from all versions strictly later than version to be used."
        },
        {
            "flag": "-C",
            "long": null,
            "arg": null,
            "description": "Read the description of the changes from the file changes-description rather than using the information from the source tree's changelog file."
        },
        {
            "flag": "-m",
            "long": null,
            "arg": null,
            "description": "Use maintainer-address as the name and email address of the maintainer for this package, rather than using the information from the source tree's control file."
        },
        {
            "flag": "-e",
            "long": null,
            "arg": null,
            "description": "Use maintainer-address as the name and email address of the maintainer for this upload, rather than using the information from the source tree's changelog."
        },
        {
            "flag": "-V",
            "long": null,
            "arg": null,
            "description": "Set an output substitution variable. See deb-substvars(5) for a discussion of output substitution."
        },
        {
            "flag": "-T",
            "long": null,
            "arg": null,
            "description": "Read substitution variables in substvars-file; the default is debian/substvars. No variable substitution is done on any of the fields that are output, except for the contents extracted from each binary package Description field (since dpkg 1.19.0), however the special variable Format will override the field of the same name. This option can be used multiple times to read substitution variables from multiple files (since dpkg 1.15.6)."
        },
        {
            "flag": "-D",
            "long": null,
            "arg": null,
            "description": "Override or add an output control file field."
        },
        {
            "flag": "-U",
            "long": null,
            "arg": null,
            "description": "Remove an output control file field."
        },
        {
            "flag": "-c",
            "long": null,
            "arg": null,
            "description": "Specifies the main source control file to read information from. The default is debian/control."
        },
        {
            "flag": "-l",
            "long": null,
            "arg": null,
            "description": "Specifies the changelog file to read information from. The default is debian/changelog."
        },
        {
            "flag": "-f",
            "long": null,
            "arg": null,
            "description": "Read the list of files to be uploaded here, rather than using debian/files."
        },
        {
            "flag": "-F",
            "long": null,
            "arg": null,
            "description": "Specifies the format of the changelog. See dpkg-parsechangelog(1) for information about alternative formats."
        },
        {
            "flag": "-u",
            "long": null,
            "arg": null,
            "description": "Look for the files to be uploaded in upload-files-dir rather than .. (dpkg-genchanges needs to find these files so that it can include their sizes and checksums in the .changes file)."
        },
        {
            "flag": "-q",
            "long": null,
            "arg": null,
            "description": "about how many of the package's source files are being uploaded. -q suppresses these messages."
        },
        {
            "flag": "-O",
            "long": null,
            "arg": null,
            "description": "Print the changes file to standard output (the default) or to filename if specified (since dpkg 1.18.5). -?, --help Show the usage message and exit."
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Show the version and exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "deb-substvars",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/deb-substvars/5/json"
        },
        {
            "name": "deb-src-control",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/deb-src-control/5/json"
        },
        {
            "name": "deb-src-files",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/deb-src-files/5/json"
        },
        {
            "name": "deb-changelog",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/deb-changelog/5/json"
        },
        {
            "name": "deb-changes",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/deb-changes/5/json"
        }
    ]
}