X86_64-LINUX-GNU-GI-INSPECT-TYPELIB(1)

πŸ“¦
version 2.90.0 Β· 3 versions
, in ubuntu stonking

πŸ‘‘ NAME πŸ‘‘

gi-inspect-typelib β€” bestie, it's a typelib inspection tool πŸ’…


✨ SYNOPSIS ✨

gi-inspect-typelib [OPTION…] --print-shlibs NAMESPACE
gi-inspect-typelib [OPTION…] --print-typelibs NAMESPACE

Like, two whole ways to run it, pick your fighter πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so gi-inspect-typelib literally shows you info about GObject-Introspection binary typelib files. That's the whole vibe. It's giving "what's inside this typelib" energy and I'm obsessed πŸ”₯

Now here's the tea on Debian-derived systems β˜• β€” every architecture ships its own version of gi-inspect-typelib prefixed with the DEB_HOST_GNU_TYPE from dpkg-architecture(1), for example arm-linux-gnueabihf-gi-inspect-typelib. Slay. Those architecture-prefixed names use the appropriate search paths for the given architecture, and bestie, you should be using them when you're cross-compiling. No cap.

Want the full lore? Go read <file:///usr/share/doc/gobject-introspection/README.Debian.gz> β€” it's all in there, more details, periodt πŸ“–


πŸ’– OPTIONS πŸ’–

  • --print-shlibs β€” shows you the shared libraries that implement the NAMESPACE. Like, who's actually holding this thing up? πŸ’ͺ
  • --print-typelibs β€” shows you the other typelibs that the NAMESPACE depends on. Its little friend group 🫢
  • --typelib-version β€” the version of each NAMESPACE to inspect. For example, the version of Gio-2.0.typelib is 2.0. And if you don't specify it? It just grabs the newest available version, but only if there's more than one installed. Iconic default behaviour tbh ⭐

🌸 EXAMPLE 🌸

On Linux, the Gio-2.0 typelib is implemented by libgio-2.0.so.0:

$ gi-inspect-typelib --typelib-version 2.0 --print-shlibs Gio
shlib: libgio-2.0.so.0

and it depends on GObject-2.0, GLib-2.0 and GModule-2.0:

$ gi-inspect-typelib --typelib-version 2.0 --print-typelibs Gio
typelib: GObject-2.0
typelib: GLib-2.0
typelib: GModule-2.0

Look at that output. Clean. Gorgeous. Ate and left no crumbs πŸ“βœ¨


Okay bye bestie, that's the whole page 🧚 This was the gi-inspect-typelib() manual β€” that's the source/manual name and it's the only version-and-date vibe this page came with, so we're rolling with it πŸ’œ Mwah, go inspect some typelibs πŸ’…πŸŽ€

πŸ“¦ where this page comes from