{
    "content": [
        {
            "type": "text",
            "text": "# krb5-config (man)\n\n## NAME\n\nkrb5-config - tool for linking against MIT Kerberos libraries\n\n## SYNOPSIS\n\nkrb5-config [--help | --all | --version | --vendor | --prefix | --exec-prefix | --defccname |\n--defktname | --defcktname | --cflags | --libs [libraries]]\n\n## DESCRIPTION\n\nkrb5-config tells the application programmer what flags to use to compile and  link  programs\nagainst the installed Kerberos libraries.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (8 subsections)\n- **EXAMPLES**\n- **SEE ALSO**\n- **AUTHOR**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "krb5-config",
        "section": "",
        "mode": "man",
        "summary": "krb5-config - tool for linking against MIT Kerberos libraries",
        "synopsis": "krb5-config [--help | --all | --version | --vendor | --prefix | --exec-prefix | --defccname |\n--defktname | --defcktname | --cflags | --libs [libraries]]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "prints the version number of the Kerberos installation."
            },
            {
                "flag": "",
                "long": "--vendor",
                "arg": null,
                "description": "prints the name of the vendor of the Kerberos installation."
            },
            {
                "flag": "",
                "long": "--prefix",
                "arg": null,
                "description": "prints the prefix for which the Kerberos installation was built."
            },
            {
                "flag": "",
                "long": "--exec-prefix",
                "arg": null,
                "description": "prints the prefix for executables for which the Kerberos installation was built."
            },
            {
                "flag": "",
                "long": "--defccname",
                "arg": null,
                "description": "prints the built-in default credentials cache location."
            },
            {
                "flag": "",
                "long": "--defktname",
                "arg": null,
                "description": "prints the built-in default keytab location."
            },
            {
                "flag": "",
                "long": "--defcktname",
                "arg": null,
                "description": "prints the built-in default client (initiator) keytab location."
            },
            {
                "flag": "",
                "long": "--cflags",
                "arg": null,
                "description": "prints the compilation flags used to build the Kerberos installation. --libs [library] prints the compiler options needed to link against library. Allowed values for li‐ brary are: ┌────────────┬───────────────────────────────────┐ │krb5 │ Kerberos 5 applications (default) │ ├────────────┼───────────────────────────────────┤ │gssapi │ GSSAPI applications with Kerberos │ │ │ 5 bindings │ ├────────────┼───────────────────────────────────┤ │kadm-client │ Kadmin client │ ├────────────┼───────────────────────────────────┤ │kadm-server │ Kadmin server │ ├────────────┼───────────────────────────────────┤ │kdb │ Applications that access the Ker‐ │ │ │ beros database │ └────────────┴───────────────────────────────────┘"
            }
        ],
        "examples": [
            "krb5-config is particularly useful for compiling against a Kerberos installation that was in‐",
            "stalled  in  a non-standard location.  For example, a Kerberos installation that is installed",
            "in /opt/krb5/ but uses libraries in /usr/local/lib/ for text localization would  produce  the",
            "following output:",
            "shell% krb5-config --libs krb5",
            "-L/opt/krb5/lib -Wl,-rpath -Wl,/opt/krb5/lib -L/usr/local/lib -lkrb5 -lk5crypto -lcomerr"
        ],
        "see_also": [
            {
                "name": "kerberos",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/kerberos/7/json"
            },
            {
                "name": "cc",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/cc/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 4,
                "subsections": [
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    },
                    {
                        "name": "--vendor",
                        "lines": 2,
                        "long": "--vendor"
                    },
                    {
                        "name": "--prefix",
                        "lines": 2,
                        "long": "--prefix"
                    },
                    {
                        "name": "--exec-prefix",
                        "lines": 2,
                        "long": "--exec-prefix"
                    },
                    {
                        "name": "--defccname",
                        "lines": 2,
                        "long": "--defccname"
                    },
                    {
                        "name": "--defktname",
                        "lines": 2,
                        "long": "--defktname"
                    },
                    {
                        "name": "--defcktname",
                        "lines": 2,
                        "long": "--defcktname"
                    },
                    {
                        "name": "--cflags",
                        "lines": 20,
                        "long": "--cflags"
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "krb5-config - tool for linking against MIT Kerberos libraries\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "krb5-config [--help | --all | --version | --vendor | --prefix | --exec-prefix | --defccname |\n--defktname | --defcktname | --cflags | --libs [libraries]]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "krb5-config tells the application programmer what flags to use to compile and  link  programs\nagainst the installed Kerberos libraries.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "--help prints a usage message.  This is the default behavior when no options are specified.\n\n--all  prints the version, vendor, prefix, and exec-prefix.\n",
                "subsections": [
                    {
                        "name": "--version",
                        "content": "prints the version number of the Kerberos installation.\n",
                        "long": "--version"
                    },
                    {
                        "name": "--vendor",
                        "content": "prints the name of the vendor of the Kerberos installation.\n",
                        "long": "--vendor"
                    },
                    {
                        "name": "--prefix",
                        "content": "prints the prefix for which the Kerberos installation was built.\n",
                        "long": "--prefix"
                    },
                    {
                        "name": "--exec-prefix",
                        "content": "prints the prefix for executables for which the Kerberos installation was built.\n",
                        "long": "--exec-prefix"
                    },
                    {
                        "name": "--defccname",
                        "content": "prints the built-in default credentials cache location.\n",
                        "long": "--defccname"
                    },
                    {
                        "name": "--defktname",
                        "content": "prints the built-in default keytab location.\n",
                        "long": "--defktname"
                    },
                    {
                        "name": "--defcktname",
                        "content": "prints the built-in default client (initiator) keytab location.\n",
                        "long": "--defcktname"
                    },
                    {
                        "name": "--cflags",
                        "content": "prints the compilation flags used to build the Kerberos installation.\n\n--libs [library]\nprints  the  compiler  options needed to link against library.  Allowed values for li‐\nbrary are:\n\n┌────────────┬───────────────────────────────────┐\n│krb5        │ Kerberos 5 applications (default) │\n├────────────┼───────────────────────────────────┤\n│gssapi      │ GSSAPI applications with Kerberos │\n│            │ 5 bindings                        │\n├────────────┼───────────────────────────────────┤\n│kadm-client │ Kadmin client                     │\n├────────────┼───────────────────────────────────┤\n│kadm-server │ Kadmin server                     │\n├────────────┼───────────────────────────────────┤\n│kdb         │ Applications that access the Ker‐ │\n│            │ beros database                    │\n└────────────┴───────────────────────────────────┘\n",
                        "long": "--cflags"
                    }
                ]
            },
            "EXAMPLES": {
                "content": "krb5-config is particularly useful for compiling against a Kerberos installation that was in‐\nstalled  in  a non-standard location.  For example, a Kerberos installation that is installed\nin /opt/krb5/ but uses libraries in /usr/local/lib/ for text localization would  produce  the\nfollowing output:\n\nshell% krb5-config --libs krb5\n-L/opt/krb5/lib -Wl,-rpath -Wl,/opt/krb5/lib -L/usr/local/lib -lkrb5 -lk5crypto -lcomerr\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "kerberos(7), cc(1)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "MIT\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "1985-2021, MIT\n\n\n\n\n1.19.2                                                                                KRB5-CONFIG(1)",
                "subsections": []
            }
        }
    }
}