NSS-CONFIG(1)

πŸ’– NSS-CONFIG πŸ’–

okay bestie, listen up β€” this one lives in the Network Security Services manual set, so if you're building stuff against NSS and you're tired of guessing where it installed itself, this little script is literally your new bestie. no cap.


✨ NAME ✨

nss-config β€” returns meta info about nss libraries. that's the whole job. it's giving "I just tell you where things are" and honestly? iconic. πŸ‘‘


🌸 SYNOPSIS 🌸

nss-config [--prefix] [--exec-prefix] [--includedir] [--libs] [--cflags]
           [--libdir] [--version]

πŸ¦‹ DESCRIPTION πŸ¦‹

nss-config is a shell script tool (yes, a script, not some giant compiled binary β€” humble and slaying) that you use to get gcc options for building client packages of nspt. that's it. that's the vibe check. you ask it a question, it answers with a path or a flag, and you go build your thing. 🫢


πŸ’… OPTIONS πŸ’…

  • --prefix β€” spits out the top-level system directory where the nss libraries are installed. the big one. the main character directory. ✨
  • --exec-prefix β€” returns the top-level system directory where any nss binaries would be installed. note the "would" β€” it's just telling you where they'd live. πŸ™ˆ
  • --includedir count β€” returns the path to the directory where the nss libraries are installed.
  • --version β€” returns the upstream version of nss, formatted like major_version-minor_version-patch_version. three little numbers, hyphen-separated, adorable. πŸ’–
  • --libs β€” returns the compiler linking flags. the "hey linker, look over here" flags. πŸ”₯
  • --cflags β€” returns the compiler include flags. the "hey compiler, the headers are right there" flags. πŸ”₯
  • --libdir β€” returns the path to the directory where the nss libraries are installed.

🌈 EXAMPLES 🌈

want both the include path and the linkage flags in one go? say less. this example queries both:

/usr/bin/nss-config --cflags --libs

see how you can just stack them? obsessed. 😭✨


πŸ“ FILES πŸ“

  • /usr/bin/nss-config

🧚 SEE ALSO 🧚


πŸ‘‘ AUTHORS πŸ‘‘

the nss libraries were written and maintained by developers with Netscape, Red Hat, Sun, Oracle, Mozilla, and Google. a whole avengers squad fr fr. 🫑

Authors: Elio Maldonado <emaldona@redhat.com>.


⭐ LICENSE ⭐

Licensed under the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.


lowkey important: that license line is the real deal β€” if you didn't get a copy of the MPL with the file, go grab it from that URL. don't just vibe past it. πŸ’œ

and that's the whole page, bestie!! this was nss version 3.131.0, dated 15 October 2026 β€” go forth and configure, you absolute legend. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from