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 bindings
    • kadm-client β€” Kadmin client
    • kadm-server β€” Kadmin server
    • kdb β€” 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


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