# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 3.24.52
- **来源摘要:** Toolkit for creating graphical user interfaces
- **主页:** <https://gtk.org/>
- **最后更新:** 2026-07-29T17:23:25+01:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- 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 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
