{
    "content": [
        {
            "type": "text",
            "text": "# apt-ftparchive (man)\n\n## NAME\n\napt-ftparchive - Utility to generate index files\n\n## SYNOPSIS\n\napt-ftparchive [-dsq] [--md5] [--delink] [--readonly] [--contents] [--arch architecture]\n[-o=configstring] [-c=configfile]\n{packages path... [override-file [pathprefix]]  |\nsources path... [override-file [pathprefix]]  | contents path  | release path\n| generate configfile section...  | clean configfile  | {-v | --version} |\n{-h | --help}}\n\n## DESCRIPTION\n\napt-ftparchive is the command line tool that generates the index files that APT uses to\naccess a distribution source. The index files should be generated on the origin site based on\nthe content of that site.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (6 subsections)\n- **THE GENERATE CONFIGURATION** (47 subsections)\n- **THE BINARY OVERRIDE FILE**\n- **THE SOURCE OVERRIDE FILE**\n- **THE EXTRA OVERRIDE FILE**\n- **OPTIONS** (13 subsections)\n- **EXAMPLES**\n- **SEE ALSO**\n- **DIAGNOSTICS**\n- **BUGS**\n- **AUTHORS** (2 subsections)\n- **NOTES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "apt-ftparchive",
        "section": "",
        "mode": "man",
        "summary": "apt-ftparchive - Utility to generate index files",
        "synopsis": "apt-ftparchive [-dsq] [--md5] [--delink] [--readonly] [--contents] [--arch architecture]\n[-o=configstring] [-c=configfile]\n{packages path... [override-file [pathprefix]]  |\nsources path... [override-file [pathprefix]]  | contents path  | release path\n| generate configfile section...  | clean configfile  | {-v | --version} |\n{-h | --help}}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-d",
                "long": "--db",
                "arg": null,
                "description": "Use a binary caching DB. This has no effect on the generate command. Configuration Item: APT::FTPArchive::DB."
            },
            {
                "flag": "-q",
                "long": "--quiet",
                "arg": null,
                "description": "Quiet; produces output suitable for logging, omitting progress indicators. More q's will produce more quiet up to a maximum of 2. You can also use -q=# to set the quiet level, overriding the configuration file. Configuration Item: quiet."
            },
            {
                "flag": "",
                "long": "--delink",
                "arg": null,
                "description": "Perform Delinking. If the External-Links setting is used then this option actually enables delinking of the files. It defaults to on and can be turned off with --no-delink. Configuration Item: APT::FTPArchive::DeLinkAct."
            },
            {
                "flag": "",
                "long": "--contents",
                "arg": null,
                "description": "Perform contents generation. When this option is set and package indexes are being generated with a cache DB then the file listing will also be extracted and stored in the DB for later use. When using the generate command this option also allows the creation of any Contents files. The default is on. Configuration Item: APT::FTPArchive::Contents."
            },
            {
                "flag": "-s",
                "long": "--source-override",
                "arg": null,
                "description": "Select the source override file to use with the sources command. Configuration Item: APT::FTPArchive::SourceOverride."
            },
            {
                "flag": "",
                "long": "--readonly",
                "arg": null,
                "description": "Make the caching databases read only. Configuration Item: APT::FTPArchive::ReadOnlyDB."
            },
            {
                "flag": "-a",
                "long": "--arch",
                "arg": null,
                "description": "Accept in the packages and contents commands only package files matching *arch.deb or *all.deb instead of all package files in the given path. Configuration Item: APT::FTPArchive::Architecture."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Show a short usage summary."
            },
            {
                "flag": "-v",
                "long": "--version",
                "arg": null,
                "description": "Show the program version."
            },
            {
                "flag": "-c",
                "long": "--config-file",
                "arg": null,
                "description": "Configuration File; Specify a configuration file to use. The program will read the default configuration file and then this configuration file. If configuration settings need to be set before the default configuration files are parsed specify a file with the APTCONFIG environment variable. See apt.conf(5) for syntax information."
            },
            {
                "flag": "-o",
                "long": "--option",
                "arg": null,
                "description": "Set a Configuration Option; This will set an arbitrary configuration option. The syntax is -o Foo::Bar=bar. -o and --option can be used multiple times to set different options."
            }
        ],
        "examples": [
            "To create a compressed Packages file for a directory containing binary packages (.deb):",
            "apt-ftparchive packages directory | gzip > Packages.gz"
        ],
        "see_also": [
            {
                "name": "apt.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/apt.conf/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 15,
                "subsections": [
                    {
                        "name": "packages",
                        "lines": 6
                    },
                    {
                        "name": "sources",
                        "lines": 8
                    },
                    {
                        "name": "contents",
                        "lines": 8
                    },
                    {
                        "name": "release",
                        "lines": 13
                    },
                    {
                        "name": "generate",
                        "lines": 5
                    },
                    {
                        "name": "clean",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "THE GENERATE CONFIGURATION",
                "lines": 8,
                "subsections": [
                    {
                        "name": "Dir Section",
                        "lines": 4
                    },
                    {
                        "name": "ArchiveDir",
                        "lines": 3
                    },
                    {
                        "name": "OverrideDir",
                        "lines": 2
                    },
                    {
                        "name": "CacheDir",
                        "lines": 2
                    },
                    {
                        "name": "FileListDir",
                        "lines": 2
                    },
                    {
                        "name": "Default Section",
                        "lines": 3
                    },
                    {
                        "name": "Packages::Compress",
                        "lines": 5
                    },
                    {
                        "name": "Packages::Extensions",
                        "lines": 2
                    },
                    {
                        "name": "Sources::Compress",
                        "lines": 3
                    },
                    {
                        "name": "Sources::Extensions",
                        "lines": 2
                    },
                    {
                        "name": "Contents::Compress",
                        "lines": 3
                    },
                    {
                        "name": "Translation::Compress",
                        "lines": 3
                    },
                    {
                        "name": "DeLinkLimit",
                        "lines": 3
                    },
                    {
                        "name": "FileMode",
                        "lines": 3
                    },
                    {
                        "name": "LongDescription",
                        "lines": 3
                    },
                    {
                        "name": "TreeDefault Section",
                        "lines": 3
                    },
                    {
                        "name": "MaxContentsChange",
                        "lines": 3
                    },
                    {
                        "name": "ContentsAge",
                        "lines": 6
                    },
                    {
                        "name": "Directory",
                        "lines": 2
                    },
                    {
                        "name": "SrcDirectory",
                        "lines": 2
                    },
                    {
                        "name": "Packages",
                        "lines": 2
                    },
                    {
                        "name": "Sources",
                        "lines": 2
                    },
                    {
                        "name": "Translation",
                        "lines": 3
                    },
                    {
                        "name": "InternalPrefix",
                        "lines": 3
                    },
                    {
                        "name": "Contents",
                        "lines": 4
                    },
                    {
                        "name": "Contents::Header",
                        "lines": 2
                    },
                    {
                        "name": "BinCacheDB",
                        "lines": 3
                    },
                    {
                        "name": "FileList",
                        "lines": 4
                    },
                    {
                        "name": "SourceFileList",
                        "lines": 4
                    },
                    {
                        "name": "Tree Section",
                        "lines": 19
                    },
                    {
                        "name": "Sections",
                        "lines": 3
                    },
                    {
                        "name": "Architectures",
                        "lines": 6
                    },
                    {
                        "name": "LongDescription",
                        "lines": 3
                    },
                    {
                        "name": "BinOverride",
                        "lines": 3
                    },
                    {
                        "name": "SrcOverride",
                        "lines": 2
                    },
                    {
                        "name": "ExtraOverride",
                        "lines": 2
                    },
                    {
                        "name": "SrcExtraOverride",
                        "lines": 2
                    },
                    {
                        "name": "BinDirectory Section",
                        "lines": 4
                    },
                    {
                        "name": "Packages",
                        "lines": 2
                    },
                    {
                        "name": "Sources",
                        "lines": 2
                    },
                    {
                        "name": "Contents",
                        "lines": 2
                    },
                    {
                        "name": "BinOverride",
                        "lines": 2
                    },
                    {
                        "name": "SrcOverride",
                        "lines": 2
                    },
                    {
                        "name": "ExtraOverride",
                        "lines": 2
                    },
                    {
                        "name": "SrcExtraOverride",
                        "lines": 2
                    },
                    {
                        "name": "BinCacheDB",
                        "lines": 2
                    },
                    {
                        "name": "PathPrefix",
                        "lines": 5
                    }
                ]
            },
            {
                "name": "THE BINARY OVERRIDE FILE",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "THE SOURCE OVERRIDE FILE",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "THE EXTRA OVERRIDE FILE",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 10,
                "subsections": [
                    {
                        "name": "-d --db",
                        "lines": 3,
                        "flag": "-d",
                        "long": "--db"
                    },
                    {
                        "name": "-q --quiet",
                        "lines": 4,
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "--delink",
                        "lines": 4,
                        "long": "--delink"
                    },
                    {
                        "name": "--contents",
                        "lines": 5,
                        "long": "--contents"
                    },
                    {
                        "name": "-s --source-override",
                        "lines": 3,
                        "flag": "-s",
                        "long": "--source-override"
                    },
                    {
                        "name": "--readonly",
                        "lines": 2,
                        "long": "--readonly"
                    },
                    {
                        "name": "-a --arch",
                        "lines": 4,
                        "flag": "-a",
                        "long": "--arch"
                    },
                    {
                        "name": "APT::FTPArchive::AlwaysStat",
                        "lines": 8
                    },
                    {
                        "name": "APT::FTPArchive::LongDescription",
                        "lines": 4
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-v --version",
                        "lines": 2,
                        "flag": "-v",
                        "long": "--version"
                    },
                    {
                        "name": "-c --config-file",
                        "lines": 5,
                        "flag": "-c",
                        "long": "--config-file"
                    },
                    {
                        "name": "-o --option",
                        "lines": 3,
                        "flag": "-o",
                        "long": "--option"
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "Jason Gunthorpe",
                        "lines": 1
                    },
                    {
                        "name": "APT team",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "NOTES",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "apt-ftparchive - Utility to generate index files\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "apt-ftparchive [-dsq] [--md5] [--delink] [--readonly] [--contents] [--arch architecture]\n[-o=configstring] [-c=configfile]\n{packages path... [override-file [pathprefix]]  |\nsources path... [override-file [pathprefix]]  | contents path  | release path\n| generate configfile section...  | clean configfile  | {-v | --version} |\n{-h | --help}}\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "apt-ftparchive is the command line tool that generates the index files that APT uses to\naccess a distribution source. The index files should be generated on the origin site based on\nthe content of that site.\n\napt-ftparchive is a superset of the dpkg-scanpackages(1) program, incorporating its entire\nfunctionality via the packages command. It also contains a contents file generator, contents,\nand an elaborate means to 'script' the generation process for a complete archive.\n\nInternally apt-ftparchive can make use of binary databases to cache the contents of a .deb\nfile and it does not rely on any external programs aside from gzip(1). When doing a full\ngenerate it automatically performs file-change checks and builds the desired compressed\noutput files.\n\nUnless the -h, or --help option is given, one of the commands below must be present.\n",
                "subsections": [
                    {
                        "name": "packages",
                        "content": "The packages command generates a package file from a directory tree. It takes the given\ndirectory and recursively searches it for .deb files, emitting a package record to stdout\nfor each. This command is approximately equivalent to dpkg-scanpackages(1).\n\nThe option --db can be used to specify a binary caching DB.\n"
                    },
                    {
                        "name": "sources",
                        "content": "The sources command generates a source index file from a directory tree. It takes the\ngiven directory and recursively searches it for .dsc files, emitting a source record to\nstdout for each. This command is approximately equivalent to dpkg-scansources(1).\n\nIf an override file is specified then a source override file will be looked for with an\nextension of .src. The --source-override option can be used to change the source override\nfile that will be used.\n"
                    },
                    {
                        "name": "contents",
                        "content": "The contents command generates a contents file from a directory tree. It takes the given\ndirectory and recursively searches it for .deb files, and reads the file list from each\nfile. It then sorts and writes to stdout the list of files matched to packages.\nDirectories are not written to the output. If multiple packages own the same file then\neach package is separated by a comma in the output.\n\nThe option --db can be used to specify a binary caching DB.\n"
                    },
                    {
                        "name": "release",
                        "content": "The release command generates a Release file from a directory tree. It recursively\nsearches the given directory for uncompressed and compressed Packages, Sources, Contents,\nComponents and icons files as well as Release, Index and md5sum.txt files by default\n(APT::FTPArchive::Release::Default-Patterns). Additional filename patterns can be added\nby listing them in APT::FTPArchive::Release::Patterns. It then writes to stdout a Release\nfile containing (by default) an MD5, SHA1, SHA256 and SHA512 digest for each file.\n\nValues for the additional metadata fields in the Release file are taken from the\ncorresponding variables under APT::FTPArchive::Release, e.g.\nAPT::FTPArchive::Release::Origin. The supported fields are Origin, Label, Suite, Version,\nCodename, Date, NotAutomatic, ButAutomaticUpgrades, Acquire-By-Hash, Valid-Until,\nSigned-By, Architectures, Components and Description.\n"
                    },
                    {
                        "name": "generate",
                        "content": "The generate command is designed to be runnable from a cron script and builds indexes\naccording to the given config file. The config language provides a flexible means of\nspecifying which index files are built from which directories, as well as providing a\nsimple means of maintaining the required settings.\n"
                    },
                    {
                        "name": "clean",
                        "content": "The clean command tidies the databases used by the given configuration file by removing\nany records that are no longer necessary.\n"
                    }
                ]
            },
            "THE GENERATE CONFIGURATION": {
                "content": "The generate command uses a configuration file to describe the archives that are going to be\ngenerated. It follows the typical ISC configuration format as seen in ISC tools like bind 8\nand dhcpd.  apt.conf(5) contains a description of the syntax. Note that the generate\nconfiguration is parsed in sectional manner, but apt.conf(5) is parsed in a tree manner. This\nonly effects how the scope tag is handled.\n\nThe generate configuration has four separate sections, each described below.\n",
                "subsections": [
                    {
                        "name": "Dir Section",
                        "content": "The Dir section defines the standard directories needed to locate the files required during\nthe generation process. These directories are prepended certain relative paths defined in\nlater sections to produce a complete an absolute path.\n"
                    },
                    {
                        "name": "ArchiveDir",
                        "content": "Specifies the root of the FTP archive, in a standard Debian configuration this is the\ndirectory that contains the ls-LR and dist nodes.\n"
                    },
                    {
                        "name": "OverrideDir",
                        "content": "Specifies the location of the override files.\n"
                    },
                    {
                        "name": "CacheDir",
                        "content": "Specifies the location of the cache files.\n"
                    },
                    {
                        "name": "FileListDir",
                        "content": "Specifies the location of the file list files, if the FileList setting is used below.\n"
                    },
                    {
                        "name": "Default Section",
                        "content": "The Default section specifies default values, and settings that control the operation of the\ngenerator. Other sections may override these defaults with a per-section setting.\n"
                    },
                    {
                        "name": "Packages::Compress",
                        "content": "Sets the default compression schemes to use for the package index files. It is a string\nthat contains a space separated list of at least one of the compressors configured via\nthe APT::Compressor configuration scope. The default for all compression schemes is '.\ngzip'.\n"
                    },
                    {
                        "name": "Packages::Extensions",
                        "content": "Sets the default list of file extensions that are package files. This defaults to '.deb'.\n"
                    },
                    {
                        "name": "Sources::Compress",
                        "content": "This is similar to Packages::Compress except that it controls the compression for the\nSources files.\n"
                    },
                    {
                        "name": "Sources::Extensions",
                        "content": "Sets the default list of file extensions that are source files. This defaults to '.dsc'.\n"
                    },
                    {
                        "name": "Contents::Compress",
                        "content": "This is similar to Packages::Compress except that it controls the compression for the\nContents files.\n"
                    },
                    {
                        "name": "Translation::Compress",
                        "content": "This is similar to Packages::Compress except that it controls the compression for the\nTranslation-en master file.\n"
                    },
                    {
                        "name": "DeLinkLimit",
                        "content": "Specifies the number of kilobytes to delink (and replace with hard links) per run. This\nis used in conjunction with the per-section External-Links setting.\n"
                    },
                    {
                        "name": "FileMode",
                        "content": "Specifies the mode of all created index files. It defaults to 0644. All index files are\nset to this mode with no regard to the umask.\n"
                    },
                    {
                        "name": "LongDescription",
                        "content": "Specifies whether long descriptions should be included in the Packages file or split out\ninto a master Translation-en file.\n"
                    },
                    {
                        "name": "TreeDefault Section",
                        "content": "Sets defaults specific to Tree sections. All of these variables are substitution variables\nand have the strings $(DIST), $(SECTION) and $(ARCH) replaced with their respective values.\n"
                    },
                    {
                        "name": "MaxContentsChange",
                        "content": "Sets the number of kilobytes of contents files that are generated each day. The contents\nfiles are round-robined so that over several days they will all be rebuilt.\n"
                    },
                    {
                        "name": "ContentsAge",
                        "content": "Controls the number of days a contents file is allowed to be checked without changing. If\nthis limit is passed the mtime of the contents file is updated. This case can occur if\nthe package file is changed in such a way that does not result in a new contents file\n[override edit for instance]. A hold off is allowed in hopes that new .debs will be\ninstalled, requiring a new file anyhow. The default is 10, the units are in days.\n"
                    },
                    {
                        "name": "Directory",
                        "content": "Sets the top of the .deb directory tree. Defaults to $(DIST)/$(SECTION)/binary-$(ARCH)/\n"
                    },
                    {
                        "name": "SrcDirectory",
                        "content": "Sets the top of the source package directory tree. Defaults to $(DIST)/$(SECTION)/source/\n"
                    },
                    {
                        "name": "Packages",
                        "content": "Sets the output Packages file. Defaults to $(DIST)/$(SECTION)/binary-$(ARCH)/Packages\n"
                    },
                    {
                        "name": "Sources",
                        "content": "Sets the output Sources file. Defaults to $(DIST)/$(SECTION)/source/Sources\n"
                    },
                    {
                        "name": "Translation",
                        "content": "Sets the output Translation-en master file with the long descriptions if they should be\nnot included in the Packages file. Defaults to $(DIST)/$(SECTION)/i18n/Translation-en\n"
                    },
                    {
                        "name": "InternalPrefix",
                        "content": "Sets the path prefix that causes a symlink to be considered an internal link instead of\nan external link. Defaults to $(DIST)/$(SECTION)/\n"
                    },
                    {
                        "name": "Contents",
                        "content": "Sets the output Contents file. Defaults to $(DIST)/$(SECTION)/Contents-$(ARCH). If this\nsetting causes multiple Packages files to map onto a single Contents file (as is the\ndefault) then apt-ftparchive will integrate those package files together automatically.\n"
                    },
                    {
                        "name": "Contents::Header",
                        "content": "Sets header file to prepend to the contents output.\n"
                    },
                    {
                        "name": "BinCacheDB",
                        "content": "Sets the binary cache database to use for this section. Multiple sections can share the\nsame database.\n"
                    },
                    {
                        "name": "FileList",
                        "content": "Specifies that instead of walking the directory tree, apt-ftparchive should read the list\nof files from the given file. Relative files names are prefixed with the archive\ndirectory.\n"
                    },
                    {
                        "name": "SourceFileList",
                        "content": "Specifies that instead of walking the directory tree, apt-ftparchive should read the list\nof files from the given file. Relative files names are prefixed with the archive\ndirectory. This is used when processing source indexes.\n"
                    },
                    {
                        "name": "Tree Section",
                        "content": "The Tree section defines a standard Debian file tree which consists of a base directory, then\nmultiple sections in that base directory and finally multiple Architectures in each section.\nThe exact pathing used is defined by the Directory substitution variable.\n\nThe Tree section takes a scope tag which sets the $(DIST) variable and defines the root of\nthe tree (the path is prefixed by ArchiveDir). Typically this is a setting such as\ndists/bullseye.\n\nAll of the settings defined in the TreeDefault section can be used in a Tree section as well\nas three new variables.\n\nWhen processing a Tree section apt-ftparchive performs an operation similar to:\n\nfor i in Sections do\nfor j in Architectures do\nGenerate for DIST=scope SECTION=i ARCH=j\n\n\n"
                    },
                    {
                        "name": "Sections",
                        "content": "This is a space separated list of sections which appear under the distribution; typically\nthis is something like main contrib non-free\n"
                    },
                    {
                        "name": "Architectures",
                        "content": "This is a space separated list of all the architectures that appear under search section.\nThe special architecture 'source' is used to indicate that this tree has a source\narchive. The architecture 'all' signals that architecture specific files like Packages\nshould not include information about architecture all packages in all files as they will\nbe available in a dedicated file.\n"
                    },
                    {
                        "name": "LongDescription",
                        "content": "Specifies whether long descriptions should be included in the Packages file or split out\ninto a master Translation-en file.\n"
                    },
                    {
                        "name": "BinOverride",
                        "content": "Sets the binary override file. The override file contains section, priority and\nmaintainer address information.\n"
                    },
                    {
                        "name": "SrcOverride",
                        "content": "Sets the source override file. The override file contains section information.\n"
                    },
                    {
                        "name": "ExtraOverride",
                        "content": "Sets the binary extra override file.\n"
                    },
                    {
                        "name": "SrcExtraOverride",
                        "content": "Sets the source extra override file.\n"
                    },
                    {
                        "name": "BinDirectory Section",
                        "content": "The bindirectory section defines a binary directory tree with no special structure. The scope\ntag specifies the location of the binary directory and the settings are similar to the Tree\nsection with no substitution variables or SectionArchitecture settings.\n"
                    },
                    {
                        "name": "Packages",
                        "content": "Sets the Packages file output.\n"
                    },
                    {
                        "name": "Sources",
                        "content": "Sets the Sources file output. At least one of Packages or Sources is required.\n"
                    },
                    {
                        "name": "Contents",
                        "content": "Sets the Contents file output (optional).\n"
                    },
                    {
                        "name": "BinOverride",
                        "content": "Sets the binary override file.\n"
                    },
                    {
                        "name": "SrcOverride",
                        "content": "Sets the source override file.\n"
                    },
                    {
                        "name": "ExtraOverride",
                        "content": "Sets the binary extra override file.\n"
                    },
                    {
                        "name": "SrcExtraOverride",
                        "content": "Sets the source extra override file.\n"
                    },
                    {
                        "name": "BinCacheDB",
                        "content": "Sets the cache DB.\n"
                    },
                    {
                        "name": "PathPrefix",
                        "content": "Appends a path to all the output paths.\n\nFileList, SourceFileList\nSpecifies the file list file.\n"
                    }
                ]
            },
            "THE BINARY OVERRIDE FILE": {
                "content": "The binary override file is fully compatible with dpkg-scanpackages(1). It contains four\nfields separated by spaces. The first field is the package name, the second is the priority\nto force that package to, the third is the section to force that package to and the final\nfield is the maintainer permutation field.\n\nThe general form of the maintainer field is:\n\nold [// oldn]* => new\n\nor simply,\n\nnew\n\nThe first form allows a double-slash separated list of old email addresses to be specified.\nIf any of those are found then new is substituted for the maintainer field. The second form\nunconditionally substitutes the maintainer field.\n",
                "subsections": []
            },
            "THE SOURCE OVERRIDE FILE": {
                "content": "The source override file is fully compatible with dpkg-scansources(1). It contains two fields\nseparated by spaces. The first field is the source package name, the second is the section to\nassign it.\n",
                "subsections": []
            },
            "THE EXTRA OVERRIDE FILE": {
                "content": "The extra override file allows any arbitrary tag to be added or replaced in the output. It\nhas three columns, the first is the package, the second is the tag and the remainder of the\nline is the new value.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "All command line options may be set using the configuration file, the descriptions indicate\nthe configuration option to set. For boolean options you can override the config file by\nusing something like -f-,--no-f, -f=no or several other variations.\n\n--md5, --sha1, --sha256, --sha512\nGenerate the given checksum. These options default to on, when turned off the generated\nindex files will not have the checksum fields where possible. Configuration Items:\nAPT::FTPArchive::Checksum and APT::FTPArchive::Index::Checksum where Index can be\nPackages, Sources or Release and Checksum can be MD5, SHA1, SHA256 or SHA512.\n",
                "subsections": [
                    {
                        "name": "-d --db",
                        "content": "Use a binary caching DB. This has no effect on the generate command. Configuration Item:\nAPT::FTPArchive::DB.\n",
                        "flag": "-d",
                        "long": "--db"
                    },
                    {
                        "name": "-q --quiet",
                        "content": "Quiet; produces output suitable for logging, omitting progress indicators. More q's will\nproduce more quiet up to a maximum of 2. You can also use -q=# to set the quiet level,\noverriding the configuration file. Configuration Item: quiet.\n",
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "--delink",
                        "content": "Perform Delinking. If the External-Links setting is used then this option actually\nenables delinking of the files. It defaults to on and can be turned off with --no-delink.\nConfiguration Item: APT::FTPArchive::DeLinkAct.\n",
                        "long": "--delink"
                    },
                    {
                        "name": "--contents",
                        "content": "Perform contents generation. When this option is set and package indexes are being\ngenerated with a cache DB then the file listing will also be extracted and stored in the\nDB for later use. When using the generate command this option also allows the creation of\nany Contents files. The default is on. Configuration Item: APT::FTPArchive::Contents.\n",
                        "long": "--contents"
                    },
                    {
                        "name": "-s --source-override",
                        "content": "Select the source override file to use with the sources command. Configuration Item:\nAPT::FTPArchive::SourceOverride.\n",
                        "flag": "-s",
                        "long": "--source-override"
                    },
                    {
                        "name": "--readonly",
                        "content": "Make the caching databases read only. Configuration Item: APT::FTPArchive::ReadOnlyDB.\n",
                        "long": "--readonly"
                    },
                    {
                        "name": "-a --arch",
                        "content": "Accept in the packages and contents commands only package files matching *arch.deb or\n*all.deb instead of all package files in the given path. Configuration Item:\nAPT::FTPArchive::Architecture.\n",
                        "flag": "-a",
                        "long": "--arch"
                    },
                    {
                        "name": "APT::FTPArchive::AlwaysStat",
                        "content": "apt-ftparchive(1) caches as much as possible of metadata in a cachedb. If packages are\nrecompiled and/or republished with the same version again, this will lead to problems as\nthe now outdated cached metadata like size and checksums will be used. With this option\nenabled this will no longer happen as it will be checked if the file was changed. Note\nthat this option is set to \"false\" by default as it is not recommend to upload multiple\nversions/builds of a package with the same version number, so in theory nobody will have\nthese problems and therefore all these extra checks are useless.\n"
                    },
                    {
                        "name": "APT::FTPArchive::LongDescription",
                        "content": "This configuration option defaults to \"true\" and should only be set to \"false\" if the\nArchive generated with apt-ftparchive(1) also provides Translation files. Note that the\nTranslation-en master file can only be created in the generate command.\n"
                    },
                    {
                        "name": "-h --help",
                        "content": "Show a short usage summary.\n",
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-v --version",
                        "content": "Show the program version.\n",
                        "flag": "-v",
                        "long": "--version"
                    },
                    {
                        "name": "-c --config-file",
                        "content": "Configuration File; Specify a configuration file to use. The program will read the\ndefault configuration file and then this configuration file. If configuration settings\nneed to be set before the default configuration files are parsed specify a file with the\nAPTCONFIG environment variable. See apt.conf(5) for syntax information.\n",
                        "flag": "-c",
                        "long": "--config-file"
                    },
                    {
                        "name": "-o --option",
                        "content": "Set a Configuration Option; This will set an arbitrary configuration option. The syntax\nis -o Foo::Bar=bar.  -o and --option can be used multiple times to set different options.\n",
                        "flag": "-o",
                        "long": "--option"
                    }
                ]
            },
            "EXAMPLES": {
                "content": "To create a compressed Packages file for a directory containing binary packages (.deb):\n\napt-ftparchive packages directory | gzip > Packages.gz\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "apt.conf(5)\n",
                "subsections": []
            },
            "DIAGNOSTICS": {
                "content": "apt-ftparchive returns zero on normal operation, decimal 100 on error.\n",
                "subsections": []
            },
            "BUGS": {
                "content": "APT bug page[1]. If you wish to report a bug in APT, please see\n/usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "",
                "subsections": [
                    {
                        "name": "Jason Gunthorpe",
                        "content": ""
                    },
                    {
                        "name": "APT team",
                        "content": ""
                    }
                ]
            },
            "NOTES": {
                "content": "1. APT bug page\nhttp://bugs.debian.org/src:apt\n\n\n\nAPT 2.4.14                                   10 May 2019                           APT-FTPARCHIVE(1)",
                "subsections": []
            }
        }
    }
}