Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt 安装 gtk-doc

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gtk-doc

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install gtk-doc

MacPorts ports tree · gnome/gtk-doc/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add gtk-doc

Alpine Linux edge package indexes · gtk-doc · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install gtk-doc

Fedora Rawhide package metadata · gtk-doc · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#gtk-doc

nixpkgs package indexes · pkgs/by-name/gt/gtk-doc/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S gtk-doc

Arch Linux sync databases · gtk-doc · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install gtk-doc

openSUSE Tumbleweed package metadata · gtk-doc · 来源: download.opensuse.org

Debian apt已验证 · 92%
sudo apt install gtk-doc-tools

Debian stable package indexes · gtk-doc-tools · 来源: deb.debian.org

概览

软件包摘要

GTK+ documentation tool

命令和别名

  • gtkdoc-check
  • gtkdoc-depscan
  • gtkdoc-fixxref
  • gtkdoc-mkdb
  • gtkdoc-mkhtml
  • gtkdoc-mkhtml2
  • gtkdoc-mkman
  • gtkdoc-mkpdf
  • gtkdoc-rebase
  • gtkdoc-scan
  • gtkdoc-scangobj
  • gtkdocize

历史

项目历史与用法

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gtkdoc-checkcli全局可执行文件
gtkdoc-depscancli全局可执行文件
gtkdoc-fixxrefcli全局可执行文件
gtkdoc-mkdbcli全局可执行文件
gtkdoc-mkhtmlcli全局可执行文件
gtkdoc-mkhtml2cli全局可执行文件
gtkdoc-mkmancli全局可执行文件
gtkdoc-mkpdfcli全局可执行文件
gtkdoc-rebasecli全局可执行文件
gtkdoc-scancli全局可执行文件
gtkdoc-scangobjcli全局可执行文件
gtkdocizecli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://gitlab.gnome.org/GNOME/gtk-doc

安装元数据

软件包元数据

软件包键brew:gtk-doc
版本1.36.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gtk-doc
主页https://gitlab.gnome.org/GNOME/gtk-doc
仓库https://gitlab.gnome.org/GNOME/gtk-doc
上游文档https://gitlab.gnome.org/GNOME/gtk-doc/-/tree/master/help/manual/C
许可证GPL-2.0-or-later
源码归档https://download.gnome.org/sources/gtk-doc/1.36/gtk-doc-1.36.1.tar.xz
最后更新2026-04-22T13:17:23Z
Pulseupdated
依赖docbook, docbook-xsl, python@3.14
构建依赖meson, ninja, pkgconf
macOS 提供的库libxml2, libxslt
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegtk-doc
Version Scheme0
Revision1
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

gtk-doc-tools 1.34.0-2

GTK+ documentation tools

https://gitlab.gnome.org/GNOME/gtk-doc/

sudo apt install gtk-doc-tools
  • Section: gnome
  • Architecture: all
  • Source Package: gtk-doc
  • 8 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gtk Doc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gtk-doc-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gtk-doc

nix profile install nixpkgs#gtk-doc
  • normalized package name match
  • 匹配方式:Gtk Doc
nixpkgs package indexes · api.github.com · 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 apt95%

gtk-doc-tools 1.34.0-1

GTK+ documentation tools

https://gitlab.gnome.org/GNOME/gtk-doc/

sudo apt install gtk-doc-tools
  • Section: universe/gnome
  • Architecture: all
  • Source Package: gtk-doc
  • 8 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gtk Doc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gtk-doc-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

gtk-doc 1.36.0-r1

Documentation tool for public library API

https://gitlab.gnome.org/GNOME/gtk-doc

sudo apk add gtk-doc
  • License: GPL-2.0-or-later AND GFDL-1.1-or-later
  • Architecture: x86_64
  • Source Package: gtk-doc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gtk Doc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gtk-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

gtk-doc 1.36.1-1.fc45

API documentation generation tool for GTK+ and GNOME

https://gitlab.gnome.org/GNOME/gtk-doc/

sudo dnf install gtk-doc
  • License: GPL-2.0-or-later AND GFDL-1.1-no-invariants-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gtk-doc
  • 9 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Gtk Doc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gtk-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

gtk-doc 1.36.1-1

Documentation tool for public library API

https://gitlab.gnome.org/GNOME/gtk-doc

sudo pacman -S gtk-doc
  • License: GFDL-1.1-or-later AND GPL-2.0-or-later
  • Architecture: any
  • 7 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gtk Doc
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gtk-doc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

gtk-doc 1.36.1-1.1

GTK+ Documentation Generator

http://www.gtk.org/gtk-doc/

sudo zypper install gtk-doc
  • License: GPL-2.0-or-later
  • Category: Productivity/Publishing/SGML
  • Architecture: x86_64
  • Source Package: gtk-doc
  • 9 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Gtk Doc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gtk-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gtk-doc-mkpdf 1.36.1-1.1

Gtkdoc PDF Generator

http://www.gtk.org/gtk-doc/

sudo zypper install gtk-doc-mkpdf
  • License: GPL-2.0-or-later
  • Category: Productivity/Publishing/SGML
  • Architecture: x86_64
  • Source Package: gtk-doc
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gtk Doc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gtk-doc-mkpdf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

gtk-doc

sudo port install gtk-doc
  • normalized package name match
  • 匹配方式:Gtk Doc
MacPorts ports tree · api.github.com · MacPorts ports tree: gnome/gtk-doc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 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