macOS
brew install gobject-introspectionlocal Homebrew formula metadata
sudo port install gobject-introspectionMacPorts ports tree · gnome/gobject-introspection/Portfile · 来源: api.github.com
安装
brew install gobject-introspectionlocal Homebrew formula metadata
sudo port install gobject-introspectionMacPorts ports tree · gnome/gobject-introspection/Portfile · 来源: api.github.com
sudo apk add gobject-introspectionAlpine Linux edge package indexes · gobject-introspection · 来源: dl-cdn.alpinelinux.org
sudo apt install gobject-introspectionDebian stable package indexes · gobject-introspection · 来源: deb.debian.org
sudo dnf install gobject-introspectionFedora Rawhide package metadata · gobject-introspection · 来源: dl.fedoraproject.org
nix profile install nixpkgs#gobject-introspectionnixpkgs package indexes · gobject-introspection · 来源: raw.githubusercontent.com
sudo pacman -S gobject-introspectionArch Linux sync databases · gobject-introspection · 来源: geo.mirror.pkgbuild.com
sudo zypper install gobject-introspectionopenSUSE Tumbleweed package metadata · gobject-introspection · 来源: download.opensuse.org
概览
Generate introspection data for GObject libraries
历史
GObject Introspection is GNOME infrastructure that turns C libraries using GObject conventions into machine-readable metadata. It provides GIR XML, compiled typelib files, scanner/compiler tools, and libgirepository so higher-level language bindings can call C APIs without each binding maintaining its own handwritten metadata.
For package maintainers it is not just another developer tool. It is build-time and runtime plumbing that many GNOME-adjacent packages need so Python, JavaScript, Vala, Perl, Ruby, Lua, Haskell, and other bindings can consume the same library metadata.
The project grew out of GNOME's long-standing need to share binding metadata instead of duplicating hand-maintained fixes across language bindings. The official goals page frames the work as a bridge between low-level C libraries and higher-level runtimes, and as a way to keep binding metadata inside the libraries through annotations.
GNOME's source archive records the 0.5.0 tarball on September 1, 2008. By the 1.30.0 release on September 20, 2011, the project had entered the 1.x line used alongside the GNOME 3 era. The documentation describes the core toolchain as g-ir-scanner, g-ir-compiler, g-ir-generate, g-ir-annotation-tool, GIR XML, typelib files, and libgirepository.
GObject Introspection became a shared foundation for language bindings rather than a user-facing app. The official users page lists bindings and consumers including Vala, Genie, PyGObject, GTK-Perl/Introspection, JGIR, GJS, Seed, GirFFI, Ruby-GNOME, Guile GI, lgi, node-gir, go-gir, haskell-gi, Common Lisp, Free Pascal, Prolog, Harbour, C++, and Crystal projects.
Distribution packaging reflects that infrastructure role. Homebrew packages it as gobject-introspection with dependencies on GLib, Cairo, pkgconf, and Python, while the input package facts map it across multiple Unix packaging systems under names such as gobject-introspection, gir1.2-freedesktop, and girepository-1_0.
Library authors enable introspection during the build, annotate APIs, and generate GIR files and typelibs. Binding authors and runtime libraries then consume those artifacts to expose the same C APIs in languages such as Python via PyGObject or JavaScript via GJS.
Package builders care about it because it can affect cross-compilation, build ordering, and split packages: GIR development metadata and compiled typelibs often need to land in different package outputs. The official documentation includes dedicated build-system integration material for Meson and Autotools, and the changelog records build-system transitions such as the end of autotools support after the 1.60 line and the later drop of autotools in the 1.61 development series.
GObject Introspection is one of the packages that explains why GNOME stacks look the way they do in package managers: many applications do not depend on it directly for a command-line interface, but their language bindings, generated metadata, and typelibs depend on it being present and correctly split.
It is also a recurring example of packaging complexity caused by generated ABI metadata. The same package participates in compiler-like scanning, documentation, runtime reflection, language bindings, and cross-build work, so small changes in it can ripple through GTK, GStreamer, GJS, PyGObject, and desktop application builds.
安全态势
没有找到 gobject-introspection 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
g-ir-annotation-tool | cli | 全局可执行文件 | |
g-ir-compiler | cli | 全局可执行文件 | |
g-ir-doc-tool | cli | 全局可执行文件 | |
g-ir-generate | cli | 全局可执行文件 | |
g-ir-inspect | cli | 全局可执行文件 | |
g-ir-scanner | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://gi.readthedocs.io/en/latest/
安装元数据
| 软件包键 | brew:gobject-introspection |
|---|---|
| 版本 | 1.86.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/gobject-introspection |
| 主页 | https://gi.readthedocs.io/en/latest/ |
| 仓库 | https://gitlab.gnome.org/GNOME/gobject-introspection |
| 上游文档 | https://gi.readthedocs.io/en/latest |
| 许可证 | GPL-2.0-or-later AND LGPL-2.0-or-later AND MIT |
| 源码归档 | https://download.gnome.org/sources/gobject-introspection/1.86/gobject-introspection-1.86.0.tar.xz |
| 最后更新 | 2026-06-08T19:08:53-04:00 |
| Pulse | updated |
| 依赖 | cairo, glib, pkgconf, python@3.14 |
| 构建依赖 | bison, meson, ninja |
| macOS 提供的库 | libffi |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gobject-introspection |
| Version Scheme | 0 |
| Revision | 2 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gir1.2-freedesktop 1.84.0-1
Introspection data for some FreeDesktop components
https://wiki.gnome.org/GObjectIntrospection
sudo apt install gir1.2-freedesktopgir1.2-freedesktop-dev 1.84.0-1
GIR XML for some FreeDesktop components
https://wiki.gnome.org/GObjectIntrospection
sudo apt install gir1.2-freedesktop-devgir1.2-girepository-2.0 1.84.0-1
Introspection data for GIRepository library
https://wiki.gnome.org/GObjectIntrospection
sudo apt install gir1.2-girepository-2.0gir1.2-girepository-2.0-dev 1.84.0-1
GIR XML for GIRepository library
https://wiki.gnome.org/GObjectIntrospection
sudo apt install gir1.2-girepository-2.0-devgobject-introspection 1.84.0-1
Generate interface introspection data for GObject libraries
https://wiki.gnome.org/GObjectIntrospection
sudo apt install gobject-introspectiongobject-introspection-bin 1.84.0-1
Executables for gobject-introspection
https://wiki.gnome.org/GObjectIntrospection
sudo apt install gobject-introspection-binlibgirepository-1.0-1 1.84.0-1
Library for handling GObject introspection data (runtime library)
https://wiki.gnome.org/GObjectIntrospection
sudo apt install libgirepository-1.0-1libgirepository-1.0-dev 1.84.0-1
Library for handling GObject introspection data (development files)
https://wiki.gnome.org/GObjectIntrospection
sudo apt install libgirepository-1.0-devlibgirepository1.0-dev 1.84.0-1
Library for handling GObject introspection data (complete development files)
https://wiki.gnome.org/GObjectIntrospection
sudo apt install libgirepository1.0-devlibgirepository1.0-doc 1.84.0-1
Library for handling GObject introspection data (documentation)
https://wiki.gnome.org/GObjectIntrospection
sudo apt install libgirepository1.0-docgobject-introspection
nix profile install nixpkgs#gobject-introspectiongir1.2-freedesktop 1.80.1-1
Introspection data for some FreeDesktop components
https://wiki.gnome.org/GObjectIntrospection
sudo apt install gir1.2-freedesktopgir1.2-freedesktop-dev 1.80.1-1
GIR XML for some FreeDesktop components
https://wiki.gnome.org/GObjectIntrospection
sudo apt install gir1.2-freedesktop-devgir1.2-girepository-2.0 1.80.1-1
Introspection data for GIRepository library
https://wiki.gnome.org/GObjectIntrospection
sudo apt install gir1.2-girepository-2.0gir1.2-girepository-2.0-dev 1.80.1-1
GIR XML for GIRepository library
https://wiki.gnome.org/GObjectIntrospection
sudo apt install gir1.2-girepository-2.0-devgobject-introspection 1.80.1-1
Generate interface introspection data for GObject libraries
https://wiki.gnome.org/GObjectIntrospection
sudo apt install gobject-introspection来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.