{
    "content": [
        {
            "type": "text",
            "text": "# apt-sortpkgs(1) (man)\n\n**Summary:** apt-sortpkgs - Utility to sort package index files\n\n**Synopsis:** apt-sortpkgs [-s] [-o=configstring] [-c=configfile] filename... {-v | --version}\n{-h | --help}\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -s | --source | — | Use source index field ordering. Configuration Item: APT::SortPkgs::Source. |\n| -h | --help | — | Show a short usage summary. |\n| -v | --version | — | Show the program version. |\n| -c | --config-file | — | Configuration File; Specify a configuration file to use. The program will read the default configuration file and then t |\n| -o | --option | — | Set a Configuration Option; This will set an arbitrary configuration option. The syntax is -o Foo::Bar=bar. -o and --opt |\n\n## See Also\n\n- apt.conf(5)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (6 lines)\n- **OPTIONS** (4 lines) — 5 subsections\n  - -s --source (2 lines)\n  - -h --help (2 lines)\n  - -v --version (2 lines)\n  - -c --config-file (5 lines)\n  - -o --option (3 lines)\n- **SEE ALSO** (2 lines)\n- **DIAGNOSTICS** (2 lines)\n- **BUGS** (3 lines)\n- **AUTHORS** (1 lines) — 2 subsections\n  - Jason Gunthorpe (1 lines)\n  - APT team (1 lines)\n- **NOTES** (6 lines)\n\n## Full Content\n\n### NAME\n\napt-sortpkgs - Utility to sort package index files\n\n### SYNOPSIS\n\napt-sortpkgs [-s] [-o=configstring] [-c=configfile] filename... {-v | --version}\n{-h | --help}\n\n### DESCRIPTION\n\napt-sortpkgs will take an index file (source index or package index) and sort the records so\nthat they are ordered by the package name. It will also sort the internal fields of each\nrecord according to the internal sorting rules.\n\nAll output is sent to standard output; the input must be a seekable file.\n\n### OPTIONS\n\nAll 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#### -s --source\n\nUse source index field ordering. Configuration Item: APT::SortPkgs::Source.\n\n#### -h --help\n\nShow a short usage summary.\n\n#### -v --version\n\nShow the program version.\n\n#### -c --config-file\n\nConfiguration 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\n#### -o --option\n\nSet 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\n### SEE ALSO\n\napt.conf(5)\n\n### DIAGNOSTICS\n\napt-sortpkgs returns zero on normal operation, decimal 100 on error.\n\n### BUGS\n\nAPT 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\n### AUTHORS\n\n#### Jason Gunthorpe\n\n#### APT team\n\n### NOTES\n\n1. APT bug page\nhttp://bugs.debian.org/src:apt\n\n\n\nAPT 2.4.14                                30 November 2013                           APT-SORTPKGS(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "apt-sortpkgs",
        "section": "1",
        "mode": "man",
        "summary": "apt-sortpkgs - Utility to sort package index files",
        "synopsis": "apt-sortpkgs [-s] [-o=configstring] [-c=configfile] filename... {-v | --version}\n{-h | --help}",
        "flags": [
            {
                "flag": "-s",
                "long": "--source",
                "arg": null,
                "description": "Use source index field ordering. Configuration Item: APT::SortPkgs::Source."
            },
            {
                "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": [],
        "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": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 4,
                "subsections": [
                    {
                        "name": "-s --source",
                        "lines": 2,
                        "flag": "-s",
                        "long": "--source"
                    },
                    {
                        "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": "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": []
            }
        ]
    }
}