{
    "content": [
        {
            "type": "text",
            "text": "# APT-CONFIG (man)\n\n## NAME\n\napt-config - APT Configuration Query program\n\n## SYNOPSIS\n\napt-config [--empty] [--format '%f \"%v\";%n'] [-o=configstring] [-c=configfile] {shell |\ndump | {-v | --version} | {-h | --help}}\n\n## DESCRIPTION\n\napt-config is an internal program used by various portions of the APT suite to provide\nconsistent configurability. It accesses the main configuration file /etc/apt/apt.conf in a\nmanner that is easy to use for scripted applications.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (2 subsections)\n- **OPTIONS** (5 subsections)\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-CONFIG",
        "section": "",
        "mode": "man",
        "summary": "apt-config - APT Configuration Query program",
        "synopsis": "apt-config [--empty] [--format '%f \"%v\";%n'] [-o=configstring] [-c=configfile] {shell |\ndump | {-v | --version} | {-h | --help}}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": "--empty",
                "arg": null,
                "description": "Include options which have an empty value. This is the default, so use --no-empty to remove them from the output. --format '%f \"%v\";%n' Defines the output of each config option. %t will be replaced with its individual name, %f with its full hierarchical name and %v with its value. Use uppercase letters and special characters in the value will be encoded to ensure that it can e.g. be safely used in a quoted-string as defined by RFC822. Additionally %n will be replaced by a newline, and %N by a tab. A % can be printed by using %%."
            },
            {
                "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": "shell",
                        "lines": 15
                    },
                    {
                        "name": "dump",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "OPTIONS",
                "lines": 4,
                "subsections": [
                    {
                        "name": "--empty",
                        "lines": 10,
                        "long": "--empty"
                    },
                    {
                        "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": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "apt-config - APT Configuration Query program\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "apt-config [--empty] [--format '%f \"%v\";%n'] [-o=configstring] [-c=configfile] {shell |\ndump | {-v | --version} | {-h | --help}}\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "apt-config is an internal program used by various portions of the APT suite to provide\nconsistent configurability. It accesses the main configuration file /etc/apt/apt.conf in a\nmanner that is easy to use for scripted applications.\n\nUnless the -h, or --help option is given, one of the commands below must be present.\n",
                "subsections": [
                    {
                        "name": "shell",
                        "content": "shell is used to access the configuration information from a shell script. It is given\npairs of arguments, the first being a shell variable and the second the configuration\nvalue to query. As output it lists shell assignment commands for each value present. In a\nshell script it should be used as follows:\n\nOPTS=\"-f\"\nRES=`apt-config shell OPTS MyApp::options`\neval $RES\nThis will set the shell environment variable $OPTS to the value of MyApp::options with a\ndefault of -f.\n\nThe configuration item may be postfixed with a /[fdbi]. f returns file names, d returns\ndirectories, b returns true or false and i returns an integer. Each of the returns is\nnormalized and verified internally.\n"
                    },
                    {
                        "name": "dump",
                        "content": "Just show the contents of the configuration space.\n"
                    }
                ]
            },
            "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",
                "subsections": [
                    {
                        "name": "--empty",
                        "content": "Include options which have an empty value. This is the default, so use --no-empty to\nremove them from the output.\n\n--format '%f \"%v\";%n'\nDefines the output of each config option. %t will be replaced with its individual name,\n%f with its full hierarchical name and %v with its value. Use uppercase letters and\nspecial characters in the value will be encoded to ensure that it can e.g. be safely used\nin a quoted-string as defined by RFC822. Additionally %n will be replaced by a newline,\nand %N by a tab. A % can be printed by using %%.\n",
                        "long": "--empty"
                    },
                    {
                        "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"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "apt.conf(5)\n",
                "subsections": []
            },
            "DIAGNOSTICS": {
                "content": "apt-config 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                                30 November 2013                             APT-CONFIG(8)",
                "subsections": []
            }
        }
    }
}