# 使用 Homebrew, apk, apt, dnf, pacman 安装 gtk+3

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

## 安装

```sh
sudo av install brew:gtk+3
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gtk+3
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gtk-update-icon-cache
```

  证据: Alpine Linux edge package indexes: gtk-update-icon-cache from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install gtk-update-icon-cache
```

  证据: Debian stable package indexes: gtk-update-icon-cache from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install gtk-update-icon-cache
```

  证据: Fedora Rawhide package metadata: gtk-update-icon-cache from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S gtk-update-icon-cache
```

  证据: Arch Linux sync databases: gtk-update-icon-cache from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:gtk+3
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gtk+3>
- **版本:** 3.24.52
- **来源摘要:** Toolkit for creating graphical user interfaces
- **主页:** <https://gtk.org/>
- **上游文档:** <https://gtk.org/>
- **许可证:** LGPL-2.0-or-later
- **源码归档:** <https://download.gnome.org/sources/gtk/3.24/gtk-3.24.52.tar.xz>
- **最后更新:** 2026-07-29T17:23:25+01:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gtk-builder-tool (cli)
- gtk-encode-symbolic-svg (cli)
- gtk-launch (cli)
- gtk-query-immodules-3.0 (cli)
- gtk-query-settings (cli)
- gtk-update-icon-cache (cli)
- gtk3-demo (cli)
- gtk3-demo-application (cli)
- gtk3-icon-browser (cli)
- gtk3-update-icon-cache (cli)
- gtk3-widget-factory (cli)
- gtk-builder-tool (别名)
- gtk-encode-symbolic-svg (别名)
- gtk-launch (别名)
- gtk-query-immodules-3.0 (别名)
- gtk-query-settings (别名)
- gtk-update-icon-cache (别名)
- gtk3-demo (别名)
- gtk3-demo-application (别名)
- gtk3-icon-browser (别名)
- gtk3-update-icon-cache (别名)
- gtk3-widget-factory (别名)

## 依赖

- at-spi2-core
- cairo
- fribidi
- gdk-pixbuf
- gettext
- glib
- gsettings-desktop-schemas
- harfbuzz
- hicolor-icon-theme
- libepoxy
- pango

## 构建依赖

- docbook
- docbook-xsl
- gettext
- gobject-introspection
- meson
- ninja
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.24.52
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://gtk.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

GTK+ 3 is the GTK 3 API generation of the GNOME-hosted graphical toolkit. The Homebrew gtk+3 formula represents the gtk+-3.0 development/runtime track, including command-line utilities used to inspect widgets, launch desktop files, query settings, maintain icon caches, and support input modules.

Historically, GTK+ 3 is the bridge between the GTK+ 2 desktop era and the GTK 4/libadwaita era: it kept the familiar C/GObject toolkit model while introducing major changes in rendering, CSS styling, input handling, and application integration.

### 项目历史

GTK+ 3.0.0 tarballs appeared in the GNOME source archive on 2011-02-10, and the GitLab tag for 3.0.0 carries the same date. The GTK 3 API documentation identifies the Gtk namespace as API Version 3.0 and Library Version 3.24, with GTK Development Team authorship and GNOME-hosted source.

GTK+ 3 kept the same project foundation described by GTK: a C toolkit on top of GLib with language binding support, LGPL licensing, and GNOME project hosting. It evolved the toolkit while preserving a long-lived gtk+-3.0 pkg-config identity for applications and distributions.

GTK+ 3.24.0 is the long-lived 3.x branch point visible in official NEWS and GNOME source archives. Package managers often expose GTK+ 3 as a stable dependency target distinct from GTK+ 2 and GTK 4 because applications may deliberately bind to one API generation.

### 采用历史

GTK+ 3 adoption followed GNOME platform adoption and broad application use. The official GTK site lists applications built with GTK across GNOME and non-GNOME software, including GIMP, Web, Inkscape, Evolution, Transmission, HandBrake, Maps, and other desktop applications.

Bindings and wrappers were central to adoption. The GTK site highlights C, JavaScript, Perl, Python, Rust, and Vala, while PyGObject documentation presents GTK, GStreamer, WebKitGTK, GLib, and GIO as GObject-based libraries available to Python programs.

### 使用方式

Developers build GTK+ 3 applications against gtk/gtk.h and pkg-config metadata such as gtk+-3.0. The docs identify dependencies including GObject, ATK, Pango, and GDK, and cover compiling/running applications, CSS, key bindings, widgets, tree/list views, drawing, input, and X11/Windows use.

The Homebrew formula's executable set reflects common GTK+ 3 workflows: gtk3-demo and gtk3-widget-factory exercise widgets; gtk-builder-tool works with GtkBuilder UI definitions; gtk-query-settings reports toolkit settings; gtk-query-immodules-3.0 manages input modules; gtk-launch works with desktop entries; icon-cache tools support themed icons.

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

GTK+ 3 is a dependency boundary package. When an application asks for gtk+-3.0, substituting GTK 4 is not a drop-in answer; packaging has to preserve parallel major API tracks. That is why formula names, pkg-config names, and executable suffixes matter.

For package maintainers, GTK+ 3 also concentrates a desktop stack: GLib/GObject, GDK, Pango, Cairo, GdkPixbuf, ATK, icon themes, input modules, settings schemas, and demos. The formula is as much about reproducible GUI build environments as it is about end-user shared libraries.

### 时间线

- 1997: GTK project copyright period begins on the official GTK site.
- 2011: GTK+ 3.0.0 tarballs appeared in the GNOME source archive.
- 2011: GTK+ 3.0.0 was tagged in the GNOME GTK repository.
- 2018: GTK+ 3.24.0 appears in official GTK NEWS as a 3.24 series release point.
- 2019: GTK+ 3.24.4 and later 3.24 tarballs appear in the GNOME source archive, marking the long 3.24 packaging era.

### Related projects

- GLib/GObject, GDK, Pango, Cairo, GdkPixbuf, and ATK form the immediate GTK+ 3 platform dependency set documented by the GTK 3 API pages.
- GTK+ 2 is the earlier API track; GTK 4 is the later API track. GTK-Doc and gi-docgen are documentation-generation projects tied to how GTK and other GObject libraries publish API references.

### 来源

- <https://docs.gtk.org/gtk3/>
- <https://download.gnome.org/sources/gtk+/3.0/>
- <https://download.gnome.org/sources/gtk+/3.24/>
- <https://gitlab.gnome.org/GNOME/gtk>
- <https://gitlab.gnome.org/GNOME/gtk/-/raw/main/README.md>
- <https://gitlab.gnome.org/api/v4/projects/GNOME%2Fgtk/repository/tags?search=^3.0.0$>
- <https://www.gtk.org/>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gtk+3
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - gtk-update-icon-cache - 4.18.6+ds-2: installed executable or alias match | Debian stable package indexes: gtk-update-icon-cache from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | icon theme caching utility | https://www.gtk.org/
- Ubuntu apt - gtk-update-icon-cache - 3.24.41-4ubuntu1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: gtk-update-icon-cache from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | icon theme caching utility | https://www.gtk.org/
- apk - gtk-update-icon-cache - 3.24.52-r0: installed executable or alias match | Alpine Linux edge package indexes: gtk-update-icon-cache from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The GTK+ Toolkit (v3) | https://www.gtk.org/
- dnf - gtk-update-icon-cache - 3.24.52-6.fc45: installed executable or alias match | Fedora Rawhide package metadata: gtk-update-icon-cache from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Icon theme caching utility | https://gtk.org
- pacman - gtk-update-icon-cache - 1:4.22.4-1: installed executable or alias match | Arch Linux sync databases: gtk-update-icon-cache from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | GTK icon cache updater | https://www.gtk.org/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Runtime dependency declared by Homebrew.
- [harfbuzz](https://pkg.so/zh-hans/brew/harfbuzz/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [pango](https://pkg.so/zh-hans/brew/pango/) - Runtime dependency declared by Homebrew.
- [cairo](https://pkg.so/zh-hans/brew/cairo/) - Runtime dependency declared by Homebrew.
- [gdk-pixbuf](https://pkg.so/zh-hans/brew/gdk-pixbuf/) - Runtime dependency declared by Homebrew.
- [fribidi](https://pkg.so/zh-hans/brew/fribidi/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ninja](https://pkg.so/zh-hans/brew/ninja/) - Build dependency declared by Homebrew.
- [meson](https://pkg.so/zh-hans/brew/meson/) - Build dependency declared by Homebrew.
- [gstreamer](https://pkg.so/zh-hans/brew/gstreamer/) - Popular package that depends on this formula.
- [putty](https://pkg.so/zh-hans/brew/putty/) - Popular package that depends on this formula.
- [vte3](https://pkg.so/zh-hans/brew/vte3/) - Popular package that depends on this formula.
- [gspell](https://pkg.so/zh-hans/brew/gspell/) - Popular package that depends on this formula.
- [gtk4](https://pkg.so/zh-hans/brew/gtk4/) - Package name indicates the same formula family.
- [gtk+](https://pkg.so/zh-hans/brew/gtk/) - Package name indicates the same formula family.

## Combined YAML source

View the package source record on GitHub. [combined/gtk+3.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gtk+3.yml)


## 来源

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