Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 gobject-introspection

查看 gobject-introspection 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gobject-introspection

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install gobject-introspection

MacPorts ports tree · gnome/gobject-introspection/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add gobject-introspection

Alpine Linux edge package indexes · gobject-introspection · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install gobject-introspection

Debian stable package indexes · gobject-introspection · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install gobject-introspection

Fedora Rawhide package metadata · gobject-introspection · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#gobject-introspection

nixpkgs package indexes · gobject-introspection · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S gobject-introspection

Arch Linux sync databases · gobject-introspection · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install gobject-introspection

openSUSE Tumbleweed package metadata · gobject-introspection · 来源: download.opensuse.org

概览

软件包摘要

Generate introspection data for GObject libraries

命令和别名

  • g-ir-annotation-tool
  • g-ir-compiler
  • g-ir-doc-tool
  • g-ir-generate
  • g-ir-inspect
  • g-ir-scanner

历史

项目历史与用法

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.

时间线

  • 2008-09-01: GNOME source archive records gobject-introspection 0.5.0
  • 2011-09-20: GNOME source archive records gobject-introspection 1.30.0
  • 2018-02-08: GNOME GitLab project record created during GNOME's GitLab-hosted era
  • 2019-03-10: 1.60.0 changelog notes the final release supporting autotools
  • 2019-08-07: 1.61.1 changelog notes the autotools build system was dropped
  • 2025-09-13: 1.86.0 appears in the official changelog and GNOME source archive

Related projects

  • GLib and GObject are the underlying object-system layer whose APIs are described by introspection metadata.
  • PyGObject, GJS, Vala, Ruby-GNOME, lgi, haskell-gi, and other bindings are documented users of the introspection repository.
  • GTK and GStreamer are common examples of GObject-based libraries whose bindings and applications rely on introspection data in GNOME-oriented distributions.

安全态势

尚未找到受保护工具覆盖

没有找到 gobject-introspection 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 4 个运行时依赖。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
g-ir-annotation-toolcli全局可执行文件
g-ir-compilercli全局可执行文件
g-ir-doc-toolcli全局可执行文件
g-ir-generatecli全局可执行文件
g-ir-inspectcli全局可执行文件
g-ir-scannercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.86.0
管理器更新时间2026-06-08
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namegobject-introspection
Version Scheme0
Revision2
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

gir1.2-freedesktop 1.84.0-1

Introspection data for some FreeDesktop components

https://wiki.gnome.org/GObjectIntrospection

sudo apt install gir1.2-freedesktop
  • Section: introspection
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 2 依赖
  • 12 提供
  • normalized package name match
  • 匹配方式:Gobject Introspection
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gir1.2-freedesktop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

gir1.2-freedesktop-dev 1.84.0-1

GIR XML for some FreeDesktop components

https://wiki.gnome.org/GObjectIntrospection

sudo apt install gir1.2-freedesktop-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 2 依赖
  • 12 提供
  • normalized package name match
  • 匹配方式:Gobject Introspection
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gir1.2-freedesktop-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

gir1.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.0
  • Section: introspection
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 2 依赖
  • normalized package name match
  • 匹配方式:Gobject Introspection
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gir1.2-girepository-2.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

gir1.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-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 2 依赖
  • normalized package name match
  • 匹配方式:Gobject Introspection
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gir1.2-girepository-2.0-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

gobject-introspection 1.84.0-1

Generate interface introspection data for GObject libraries

https://wiki.gnome.org/GObjectIntrospection

sudo apt install gobject-introspection
  • Section: devel
  • Architecture: amd64
  • 14 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gobject Introspection
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gobject-introspection from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

gobject-introspection-bin 1.84.0-1

Executables for gobject-introspection

https://wiki.gnome.org/GObjectIntrospection

sudo apt install gobject-introspection-bin
  • Section: devel
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 11 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gobject Introspection
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gobject-introspection-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgirepository-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-1
  • Section: libs
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gobject Introspection
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgirepository-1.0-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgirepository-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-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 4 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gobject Introspection
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgirepository-1.0-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgirepository1.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-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 11 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gobject Introspection
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgirepository1.0-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgirepository1.0-doc 1.84.0-1

Library for handling GObject introspection data (documentation)

https://wiki.gnome.org/GObjectIntrospection

sudo apt install libgirepository1.0-doc
  • Section: doc
  • Architecture: all
  • Source Package: gobject-introspection
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gobject Introspection
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgirepository1.0-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gobject-introspection

nix profile install nixpkgs#gobject-introspection
  • normalized package name match
  • 匹配方式:Gobject Introspection
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: gobject-introspection from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

gir1.2-freedesktop 1.80.1-1

Introspection data for some FreeDesktop components

https://wiki.gnome.org/GObjectIntrospection

sudo apt install gir1.2-freedesktop
  • Section: introspection
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 2 依赖
  • 12 提供
  • normalized package name match
  • 匹配方式:Gobject Introspection
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gir1.2-freedesktop from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

gir1.2-freedesktop-dev 1.80.1-1

GIR XML for some FreeDesktop components

https://wiki.gnome.org/GObjectIntrospection

sudo apt install gir1.2-freedesktop-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 2 依赖
  • 12 提供
  • normalized package name match
  • 匹配方式:Gobject Introspection
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gir1.2-freedesktop-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

gir1.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.0
  • Section: introspection
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 2 依赖
  • normalized package name match
  • 匹配方式:Gobject Introspection
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gir1.2-girepository-2.0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

gir1.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-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gobject-introspection
  • 2 依赖
  • normalized package name match
  • 匹配方式:Gobject Introspection
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gir1.2-girepository-2.0-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

gobject-introspection 1.80.1-1

Generate interface introspection data for GObject libraries

https://wiki.gnome.org/GObjectIntrospection

sudo apt install gobject-introspection
  • Section: devel
  • Architecture: amd64
  • 14 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gobject Introspection
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gobject-introspection from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment