X86_64-LINUX-GNU-GI-INSPECT-TYPELIB(1)
π 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 ofGio-2.0.typelibis2.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
- ubuntu stonking: girepository-tools 2.90.0-1 Β· LGPL-2.1-or-later
- π the page's license: LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms