KRB5-CONFIG(1)
π KRB5-CONFIG β¨
okay bestie, gather round, because this little tool is the unsung hero of your build system and nobody ever talks about it π
πΈ NAME πΈ
krb5-config β it's literally the tool for linking against MIT Kerberos libraries. that's the whole job. no notes. π
β¨ SYNOPSIS β¨
krb5-config [--help | --all | --version | --vendor | --prefix |
--exec-prefix | --defccname | --defktname | --defcktname | --cflags |
--libs [libraries]]
π¦ DESCRIPTION π¦
so, krb5-config is the friend who tells the application programmer what flags to use to compile and link programs against the installed Kerberos libraries. that's it, that's the vibe. it's giving helpful. it's giving "here's exactly what you need, no guessing" π
π OPTIONS π
--helpβ prints a usage message. and plot twist, this is the default behavior when you pass no options at all. so if you just run it with nothing, it's like "hey bestie here's how to use me" π«Ά--allβ prints the version, vendor, prefix, and exec-prefix. all of it. the whole info dump. slay.--versionβ prints the version number of the Kerberos installation. number goes here β--vendorβ prints the name of the vendor of the Kerberos installation.--prefixβ prints the prefix for which the Kerberos installation was built.--exec-prefixβ prints the prefix for executables for which the Kerberos installation was built. (yes it's a different prefix. yes it matters. iykyk π)--defccnameβ prints the built-in default credentials cache location. π--defktnameβ prints the built-in default keytab location.--defcktnameβ prints the built-in default client (initiator) keytab location.--cflagsβ prints the compilation flags used to build the Kerberos installation.--libs [library]β prints the compiler options needed to link against library. and here's the menu of allowed values for library, bestie, take notes πkrb5β Kerberos 5 applications (this is the default, so if you don't say anything it just assumes this one π)gssapiβ GSSAPI applications with Kerberos 5 bindingskadm-clientβ Kadmin clientkadm-serverβ Kadmin serverkdbβ Applications that access the Kerberos database
π EXAMPLES π
ngl this is where it pops off. krb5-config is particularly useful for compiling against a Kerberos installation that was installed in a non-standard location. like, that's its moment. that's its main character energy π
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 -lcom_err
see how it's pulling from both places?? the way that it just knows ππ iconic behavior, honestly.
π SEE ALSO π
kerberos <#kerberos-7>cc(1)
π§ Author π§
MIT
β Copyright β
1985-2026, MIT
and that's the whole page, bestie!! go forth and link against Kerberos with confidence, you absolute legend πΈπβ¨
mwah π this was KRB5-CONFIG(1), brought to you by MIT Kerberos, version 1.22.2 β no cap, that's the actual version, go check π
π¦ where this page comes from
- fedora 44: krb5-devel 1.22.2-2.fc44 Β· Brian-Gladman-2-Clause AND BSD-2-Clause AND (BSD-2-Clause OR GPL-2.0-or-later) AND BSD-2-Clause-first-lines AND BSD-3-Clause AND BSD-4-Clause AND CMU-Mach-nodoc AND FSFULLRWD AND HPND AND HPND-export2-US AND HPND-export-US AND HPND-export-US-acknowledgement AND HPND-export-US-modify AND ISC AND MIT AND MIT-CMU AND OLDAP-2.8 AND OpenVision
- fedora 44: krb5-devel 1.22.2-2.fc44 Β· Brian-Gladman-2-Clause AND BSD-2-Clause AND (BSD-2-Clause OR GPL-2.0-or-later) AND BSD-2-Clause-first-lines AND BSD-3-Clause AND BSD-4-Clause AND CMU-Mach-nodoc AND FSFULLRWD AND HPND AND HPND-export2-US AND HPND-export-US AND HPND-export-US-acknowledgement AND HPND-export-US-modify AND ISC AND MIT AND MIT-CMU AND OLDAP-2.8 AND OpenVision
- fedora 44: krb5-devel 1.22.2-4.fc44 Β· Brian-Gladman-2-Clause AND BSD-2-Clause AND (BSD-2-Clause OR GPL-2.0-or-later) AND BSD-2-Clause-first-lines AND BSD-3-Clause AND BSD-4-Clause AND CMU-Mach-nodoc AND FSFULLRWD AND HPND AND HPND-export2-US AND HPND-export-US AND HPND-export-US-acknowledgement AND HPND-export-US-modify AND ISC AND MIT AND MIT-CMU AND OLDAP-2.8 AND OpenVision
- fedora 44: krb5-devel 1.22.2-4.fc44 Β· Brian-Gladman-2-Clause AND BSD-2-Clause AND (BSD-2-Clause OR GPL-2.0-or-later) AND BSD-2-Clause-first-lines AND BSD-3-Clause AND BSD-4-Clause AND CMU-Mach-nodoc AND FSFULLRWD AND HPND AND HPND-export2-US AND HPND-export-US AND HPND-export-US-acknowledgement AND HPND-export-US-modify AND ISC AND MIT AND MIT-CMU AND OLDAP-2.8 AND OpenVision
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms