# gtk-doc を Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt でインストール

gtk-doc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:gtk-doc
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install gtk-doc
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gtk-doc
```

  証拠: MacPorts ports tree: gnome/gtk-doc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add gtk-doc
```

  証拠: Alpine Linux edge package indexes: gtk-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install gtk-doc
```

  証拠: Fedora Rawhide package metadata: gtk-doc 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#gtk-doc
```

  証拠: nixpkgs package indexes: pkgs/by-name/gt/gtk-doc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gtk-doc
```

  証拠: Arch Linux sync databases: gtk-doc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gtk-doc
```

  証拠: openSUSE Tumbleweed package metadata: gtk-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install gtk-doc-tools
```

  証拠: Debian stable package indexes: gtk-doc-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## パッケージ情報

- **パッケージキー:** brew:gtk-doc
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.36.1
- **ソース概要:** GTK+ documentation tool
- **ホームページ:** <https://gitlab.gnome.org/GNOME/gtk-doc>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- gtkdoc-check (エイリアス)
- gtkdoc-depscan (エイリアス)
- gtkdoc-fixxref (エイリアス)
- gtkdoc-mkdb (エイリアス)
- gtkdoc-mkhtml (エイリアス)
- gtkdoc-mkhtml2 (エイリアス)
- gtkdoc-mkman (エイリアス)
- gtkdoc-mkpdf (エイリアス)
- gtkdoc-rebase (エイリアス)
- gtkdoc-scan (エイリアス)
- gtkdoc-scangobj (エイリアス)
- gtkdocize (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.36.1
## プロジェクトの歴史と使われ方

GTK-Doc is a documentation generator for C APIs, especially GLib, GObject, GTK, and GNOME-style libraries. It extracts structured comments from C code, understands GObject signals and properties, produces DocBook XML, and transforms that output into HTML and other formats.

For package maintainers, GTK-Doc is the build-time tool that explains why GNOME library packages often have optional documentation flags, gtkdocize steps, DocBook dependencies, scanner binaries, and generated API reference artifacts.

### プロジェクトの歴史

The GTK-Doc repository has a 'start' tag dated 1998-11-24 and a GTK_DOC_1_0 tag dated 2003-01-20. The GNOME source archive also lists gtk-doc-1.0 tarballs dated 2003-01-20, giving a fixed early release anchor.

The project README says GTK-Doc is used to document C code, typically the public API of libraries such as GLib-based libraries, but also application code. It also notes that GTK-Doc was not originally intended as a general-purpose documentation tool and points to Doxygen for that broader role.

The project evolved from a DocBook-oriented GNOME documentation pipeline into a Python/Meson-era maintenance tool. The NEWS file records Python 3-related changes, an experimental gtkdoc-mkhtml2 toolchain in 1.30, Python 3 requirements in 1.29, and the removal of Autotools as a way to build GTK-Doc itself in 1.36.0.

### 採用の歴史

GTK-Doc was adopted across the GNOME C library ecosystem because it understands GObject-specific concepts that generic C documentation tools may not: signals, properties, object scanners, and conventions used by GTK widgets and GObject classes.

The archived GNOME GtkDoc page describes it as a tool for extracting API documentation from C code like Doxygen, with special support for GObject, and describes HTML output by default with PDF and man-page output possible with extra work. GNOME project pages and coding-practice material refer to GTK-Doc annotations as part of documenting public C APIs.

### 使われ方

A project using GTK-Doc writes documentation blocks in C comments, keeps section and symbol metadata, runs tools such as gtkdoc-scan, gtkdoc-scangobj, gtkdoc-mkdb, gtkdoc-mkhtml, gtkdoc-fixxref, gtkdoc-mkman, gtkdoc-mkpdf, and often integrates gtkdocize with Autotools-era projects or Meson build definitions.

The README describes generated HTML as browsable in a normal browser or in Devhelp. The manual/wiki workflow also explains the package's role in local developer environments: it is not just a documentation renderer, but a scanner and cross-reference pipeline used while building source distributions.

### パッケージ好きにとっての重要性

GTK-Doc is a classic build dependency that users may never run directly but packagers recognize instantly. Enabling API docs in a GNOME library can pull in GTK-Doc, DocBook DTDs, DocBook XSL stylesheets, libxml2/libxslt, Python modules, and sometimes PDF tooling such as dblatex.

Its long tail matters because old projects may still expect gtkdocize and Autotools integration, while the GTK-Doc project itself moved its own build to Meson. That split between being built with Meson and still supporting Autotools integration in downstream projects is package-maintainer lore.

### タイムライン

- 1998: GTK-Doc repository has a start tag.
- 2003: GTK-Doc 1.0 tag and GNOME source tarballs appeared.
- 2018: GTK-Doc 1.29 NEWS records Python 3 requirement changes.
- 2019: GTK-Doc 1.30 NEWS records Pygments use and an experimental gtkdoc-mkhtml2 toolchain.
- 2020: GTK-Doc 1.33.0 NEWS records reproducible-build and GTK action documentation support.
- 2026: GTK-Doc 1.36.0 NEWS records that GTK-Doc can no longer be built with Autotools, while Autotools integration files remain for downstream projects.

### Related projects

- GTK, GLib, GObject, GNOME libraries, Devhelp, DocBook, libxml2, libxslt, Meson, and Autotools are the central related projects in GTK-Doc's package history.
- gi-docgen is the related GNOME documentation generator associated with GObject Introspection-era API reference publishing; archived GNOME pages describe efforts to generate documentation from introspection data as a successor direction for parts of the GTK-Doc role.

### ソース

- <https://download.gnome.org/sources/gtk-doc/1.0/>
- <https://gitlab.gnome.org/GNOME/gtk-doc>
- <https://gitlab.gnome.org/GNOME/gtk-doc/-/raw/master/NEWS>
- <https://gitlab.gnome.org/GNOME/gtk-doc/-/raw/master/README.md>
- <https://gitlab.gnome.org/api/v4/projects/GNOME%2Fgtk-doc/repository/tags?per_page=100>
- <https://wiki.gnome.org/DocumentationProject/GtkDoc>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Debian apt - gtk-doc-tools - 1.34.0-2: normalized package name match | Debian stable package indexes: gtk-doc-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GTK+ documentation tools | https://gitlab.gnome.org/GNOME/gtk-doc/
- Nix - gtk-doc: normalized package name match | nixpkgs package indexes: pkgs/by-name/gt/gtk-doc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gtk-doc-tools - 1.34.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: gtk-doc-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GTK+ documentation tools | https://gitlab.gnome.org/GNOME/gtk-doc/
- apk - gtk-doc - 1.36.0-r1: normalized package name match | Alpine Linux edge package indexes: gtk-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Documentation tool for public library API | https://gitlab.gnome.org/GNOME/gtk-doc
- dnf - gtk-doc - 1.36.1-3.fc45: normalized package name match | Fedora Rawhide package metadata: gtk-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | API documentation generation tool for GTK+ and GNOME | https://gitlab.gnome.org/GNOME/gtk-doc/
- pacman - gtk-doc - 1.36.1-1: normalized package name match | Arch Linux sync databases: gtk-doc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Documentation tool for public library API | https://gitlab.gnome.org/GNOME/gtk-doc
- zypper - gtk-doc - 1.36.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: gtk-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | GTK+ Documentation Generator | http://www.gtk.org/gtk-doc/
- zypper - gtk-doc-mkpdf - 1.36.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: gtk-doc-mkpdf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Gtkdoc PDF Generator | http://www.gtk.org/gtk-doc/
- MacPorts - gtk-doc: normalized package name match | MacPorts ports tree: gnome/gtk-doc/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/gtk-doc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gtk-doc.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
