{
    "content": [
        {
            "type": "text",
            "text": "# dpkg-genchanges (man)\n\n## NAME\n\ndpkg-genchanges - generate Debian .changes files\n\n## SYNOPSIS\n\ndpkg-genchanges [option...]\n\n## DESCRIPTION\n\ndpkg-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\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (25 subsections)\n- **ENVIRONMENT**\n- **FILES** (1 subsections)\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "dpkg-genchanges",
        "section": "",
        "mode": "man",
        "summary": "dpkg-genchanges - generate Debian .changes files",
        "synopsis": "dpkg-genchanges [option...]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "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": "",
                "long": null,
                "arg": null,
                "description": "Causes changelog information from all versions strictly later than version to be used."
            },
            {
                "flag": "",
                "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": "",
                "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": "",
                "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": "",
                "long": null,
                "arg": null,
                "description": "Set an output substitution variable. See deb-substvars(5) for a discussion of output substitution."
            },
            {
                "flag": "",
                "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": "",
                "long": null,
                "arg": null,
                "description": "Override or add an output control file field."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Remove an output control file field."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Specifies the main source control file to read information from. The default is debian/control."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Specifies the changelog file to read information from. The default is debian/changelog."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Read the list of files to be uploaded here, rather than using debian/files."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Specifies the format of the changelog. See dpkg-parsechangelog(1) for information about alternative formats."
            },
            {
                "flag": "",
                "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 20,
                "subsections": [
                    {
                        "name": "-g   --build=source,all",
                        "lines": 1,
                        "flag": "-g",
                        "long": "--build",
                        "arg": "source,all"
                    },
                    {
                        "name": "-G   --build=source,any",
                        "lines": 1,
                        "flag": "-G",
                        "long": "--build",
                        "arg": "source,any"
                    },
                    {
                        "name": "-b   --build=binary  --build=any,all",
                        "lines": 1,
                        "flag": "-b",
                        "long": "--build",
                        "arg": "any,all"
                    },
                    {
                        "name": "-B   --build=any",
                        "lines": 1,
                        "flag": "-B",
                        "long": "--build",
                        "arg": "any"
                    },
                    {
                        "name": "-A   --build=all",
                        "lines": 1,
                        "flag": "-A",
                        "long": "--build",
                        "arg": "all"
                    },
                    {
                        "name": "-S   --build=source",
                        "lines": 3,
                        "flag": "-S",
                        "long": "--build",
                        "arg": "source"
                    },
                    {
                        "name": "-si",
                        "lines": 3
                    },
                    {
                        "name": "-sa",
                        "lines": 1
                    },
                    {
                        "name": "-sd",
                        "lines": 1
                    },
                    {
                        "name": "-v_",
                        "lines": 2
                    },
                    {
                        "name": "-C_",
                        "lines": 3
                    },
                    {
                        "name": "-m_",
                        "lines": 3
                    },
                    {
                        "name": "-e_",
                        "lines": 3
                    },
                    {
                        "name": "-V_",
                        "lines": 3
                    },
                    {
                        "name": "-T_",
                        "lines": 7
                    },
                    {
                        "name": "-D_",
                        "lines": 2
                    },
                    {
                        "name": "-U_",
                        "lines": 2
                    },
                    {
                        "name": "-c_",
                        "lines": 3
                    },
                    {
                        "name": "-l_",
                        "lines": 2
                    },
                    {
                        "name": "-f_",
                        "lines": 2
                    },
                    {
                        "name": "-F_",
                        "lines": 3
                    },
                    {
                        "name": "-u_",
                        "lines": 4
                    },
                    {
                        "name": "-q",
                        "lines": 3,
                        "flag": "-q"
                    },
                    {
                        "name": "-O",
                        "lines": 6,
                        "flag": "-O"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "ENVIRONMENT",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "debian/files",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            }
        ],
        "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"
                    },
                    {
                        "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"
                    },
                    {
                        "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"
                    },
                    {
                        "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"
                    },
                    {
                        "name": "-V_",
                        "content": "Set  an  output  substitution  variable.  See deb-substvars(5) for a discussion of output\nsubstitution.\n"
                    },
                    {
                        "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"
                    },
                    {
                        "name": "-D_",
                        "content": "Override or add an output control file field.\n"
                    },
                    {
                        "name": "-U_",
                        "content": "Remove an output control file field.\n"
                    },
                    {
                        "name": "-c_",
                        "content": "Specifies  the  main  source  control  file  to  read  information  from.  The default is\ndebian/control.\n"
                    },
                    {
                        "name": "-l_",
                        "content": "Specifies the changelog file to read information from.  The default is debian/changelog.\n"
                    },
                    {
                        "name": "-f_",
                        "content": "Read the list of files to be uploaded here, rather than using debian/files.\n"
                    },
                    {
                        "name": "-F_",
                        "content": "Specifies the format of the changelog.  See dpkg-parsechangelog(1) for information  about\nalternative formats.\n"
                    },
                    {
                        "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"
                    },
                    {
                        "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\n1.22.6                                       2026-05-06                           dpkg-genchanges(1)",
                "subsections": []
            }
        }
    }
}