# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 gi-docgen

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

## 安装

```sh
sudo av install brew:gi-docgen
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gi-docgen
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gi-docgen
```

  证据: MacPorts ports tree: gnome/gi-docgen/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add gi-docgen
```

  证据: Alpine Linux edge package indexes: gi-docgen from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install gi-docgen
```

  证据: Debian stable package indexes: gi-docgen from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install gi-docgen
```

  证据: Fedora Rawhide package metadata: gi-docgen from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#gi-docgen
```

  证据: nixpkgs package indexes: pkgs/by-name/gi/gi-docgen/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gi-docgen
```

  证据: Arch Linux sync databases: gi-docgen from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gi-docgen
```

  证据: openSUSE Tumbleweed package metadata: gi-docgen from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:gi-docgen
- **软件包管理器:** Homebrew
- **版本:** 2026.1
- **来源摘要:** Documentation tool for GObject-based libraries
- **主页:** <https://gnome.pages.gitlab.gnome.org/gi-docgen/>
- **最后更新:** 2026-06-13T23:34:55+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gi-docgen (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2026.1
## 项目历史与用法

GI-DocGen is GNOME's documentation generator for GObject-based libraries. It uses GObject Introspection data to produce API references and ancillary documentation, especially for GTK and nearby platform libraries.

### 项目历史

The GNOME-hosted GitLab project was created in November 2020 and carries GNOME Foundation copyright terms from 2021. Its documentation frames the project as a focused generator for libraries that expose GObject Introspection data, with GTK and its immediate dependencies as the primary target rather than all C libraries.

GI-DocGen sits in the lineage of GNOME API documentation tooling alongside GTK-Doc, but it reflects a later approach built around introspection metadata, Sphinx-style documentation pages, Meson integration, and generated reference sites for the GObject ecosystem.

### 采用历史

The project's adoption is tied to GNOME library publishing rather than broad language-wide documentation. It matters because many GNOME platform libraries share the same GObject Introspection machinery, so a generator that understands that metadata can produce consistent API references for libraries that bindings and application developers depend on.

Distribution packaging across Linux distributions, Homebrew, MacPorts, Nix, and Python packaging made GI-DocGen available to maintainers building GNOME-related source releases and documentation sites.

### 使用方式

Practitioners use GI-DocGen from a source tree or a package installation to generate reference documentation from introspection data and a project configuration file. The documented workflow points users to a tutorial, project configuration, linking rules, introspection attributes, templates, content pages, and command documentation.

The README emphasizes that GI-DocGen is not a general C documentation tool. Its practical use is strongest in GObject projects that already produce introspection data and want API pages aligned with GTK and GNOME documentation conventions.

### 为什么软件包爱好者会关心

For package maintainers, GI-DocGen is a build-time documentation dependency with GNOME-specific semantics. It is useful in distro and Homebrew contexts because it can be installed as a normal tool while preserving the GNOME project's preferred documentation pipeline.

### 时间线

- 2020: GNOME GitLab project created.
- 2021: GNOME Foundation copyright appears in the project README and documentation.
- 2025: Tagged releases included 2025.4 and 2025.5.
- 2026: The 2026.1 tag documented parser, template, and styling fixes.

### Related projects

- GI-DocGen is related to GObject Introspection, GTK, Meson, GTK-Doc, HotDoc, Doxygen, and Devhelp documentation indexes.

### 来源

- <https://gitlab.gnome.org/GNOME/gi-docgen>
- <https://gitlab.gnome.org/GNOME/gi-docgen/-/tags>
- <https://gitlab.gnome.org/api/v4/projects/GNOME%2Fgi-docgen>
- <https://gnome.pages.gitlab.gnome.org/gi-docgen>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - gi-docgen - 2025.3-1: normalized package name match | Debian stable package indexes: gi-docgen from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | source code documentation tool using GObject-Introspection | https://gitlab.gnome.org/GNOME/gi-docgen/
- Debian apt - gi-docgen-doc - 2025.3-1: normalized package name match | Debian stable package indexes: gi-docgen-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation for the gi-docgen documentation tool | https://gitlab.gnome.org/GNOME/gi-docgen/
- Nix - gi-docgen: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/gi-docgen/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gi-docgen - 2023.3+ds-1: normalized package name match | Ubuntu 24.04 LTS package indexes: gi-docgen from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | source code documentation tool using GObject-Introspection | https://gitlab.gnome.org/GNOME/gi-docgen/
- Ubuntu apt - gi-docgen-doc - 2023.3+ds-1: normalized package name match | Ubuntu 24.04 LTS package indexes: gi-docgen-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Documentation for the gi-docgen documentation tool | https://gitlab.gnome.org/GNOME/gi-docgen/
- apk - gi-docgen - 2026.1-r1: normalized package name match | Alpine Linux edge package indexes: gi-docgen from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A documentation generator for GObject-based libraries | https://gitlab.gnome.org/GNOME/gi-docgen
- apk - gi-docgen-pyc - 2026.1-r1: normalized package name match | Alpine Linux edge package indexes: gi-docgen-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for gi-docgen | https://gitlab.gnome.org/GNOME/gi-docgen
- dnf - gi-docgen - 2026.1-12.fc45: normalized package name match | Fedora Rawhide package metadata: gi-docgen from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation tool for GObject-based libraries | https://gitlab.gnome.org/GNOME/gi-docgen
- dnf - gi-docgen-fonts - 2026.1-12.fc45: normalized package name match | Fedora Rawhide package metadata: gi-docgen-fonts from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Metapackage providing fonts for gi-docgen output | https://gitlab.gnome.org/GNOME/gi-docgen
- pacman - gi-docgen - 2026.1-1: normalized package name match | Arch Linux sync databases: gi-docgen from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Documentation generator for GObject-based libraries | https://gnome.pages.gitlab.gnome.org/gi-docgen/
- zypper - gi-docgen - 2026.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: gi-docgen from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A documentation generator for GObject-based libraries | https://gitlab.gnome.org/GNOME/gi-docgen
- MacPorts - gi-docgen: normalized package name match | MacPorts ports tree: gnome/gi-docgen/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/gi-docgen.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gi-docgen.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
