pkg.soopen package index

brew / 排名 1580

使用 Homebrew, dnf 安装 gtk+

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gtk+

local Homebrew formula metadata

概览

软件包摘要

GUI toolkit

命令和别名

  • gtk-builder-convert
  • gtk-demo
  • gtk-query-immodules-2.0
  • gtk2-update-icon-cache

历史

项目历史与用法

GTK is the GNOME-hosted widget toolkit for building graphical user interfaces, written in C and built on GLib. The Homebrew gtk+ formula represents the GTK+ 2 version track, a long-lived ABI era that many older Unix desktop applications and libraries were written against.

GTK+ 2 matters historically because it was the toolkit generation that carried much of the GNOME 2 desktop ecosystem, the classic gtk+-2.0 pkg-config identity, and a large body of applications through the 2000s and 2010s.

项目历史

GTK sources carry the older 'The GIMP Toolkit' identity in project files, and the GTK web site places project copyright from 1997 onward. The project became a GNOME-hosted, LGPL-licensed toolkit with GLib as its foundation and a programming model centered on widgets, signals, GObject, and language bindings.

GTK+ 2.0.0 tarballs appeared in the GNOME source archive on 2002-03-08. The 2.x line standardized the gtk+-2.0 development package identity and became the common target for a large generation of GNOME and cross-platform Unix GUI software.

GTK+ 2.24.0 was tagged in 2011, and the 2.24 series became the terminal GTK+ 2 branch exposed by many package managers. The GNOME source archive shows GTK+ 2.24.33 tarballs dated 2020-12-21, illustrating the long maintenance tail of the GTK+ 2 API track.

采用历史

GTK adoption is intertwined with GNOME, but the official GTK site emphasizes broader use: applications built with GTK include GIMP, Fonts, Calculator, Web, Inkscape, Evolution, Image Viewer, Polari, Podcasts, Maps, Transmission, Secrets, and HandBrake. GTK+ 2 was especially visible in traditional desktop apps that predate the GTK 3 and GTK 4 application models.

Language bindings are a major adoption path. The GTK site notes bindings and wrappers for languages such as Python, JavaScript, Perl, Rust, and Vala, and the GTK+ 2 era helped make GTK a common package dependency outside pure C projects.

使用方式

Developers build GTK+ 2 applications against headers such as gtk/gtk.h and pkg-config metadata such as gtk+-2.0. The toolkit supplies windows, buttons, text views, tree views, menus, dialogs, input handling, theming, accessibility integration, and GDK backends for display systems.

The Homebrew gtk+ package exposes GTK+ 2 utilities such as gtk-demo, gtk-builder-convert, gtk-query-immodules-2.0, and gtk2-update-icon-cache. That makes the formula useful both for building older applications and for keeping their auxiliary tooling available.

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

GTK+ 2 is package-manager archaeology in productive form. Its ABI is old enough that modern desktops may not use it for new work, but many source builds, ports, plugins, and legacy applications still ask for gtk+-2.0 explicitly.

Packagers care about GTK+ 2 because it pulls a historical GNOME stack with GLib, Pango, GDK-Pixbuf, ATK, Cairo, icon caches, input modules, and theme engines. A missing gtk+ formula can be the difference between a legacy GUI package building cleanly and a dependency hunt through old desktop infrastructure.

时间线

  • 1997: GTK project copyright period begins on the official GTK site.
  • 2002: GTK+ 2.0.0 tarballs appeared in the GNOME source archive.
  • 2011: GTK+ 2.24.0 was tagged.
  • 2020: GTK+ 2.24.33 tarballs appeared in the GNOME source archive.

Related projects

  • GLib provides fundamental data types and system integration; GObject supplies the object system; GDK handles windowing; Pango handles text; Cairo handles drawing; GdkPixbuf handles images; ATK supplies accessibility interfaces.
  • GTK+ 3 and GTK 4 are later GTK API generations. GTK-Doc documented large parts of the GTK/GNOME C API ecosystem, including GTK symbols, GObject signals, and properties.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gtk-builder-convert可执行文件已索引可执行文件从本地可执行文件索引发现。
gtk-demo可执行文件已索引可执行文件从本地可执行文件索引发现。
gtk-query-immodules-2.0可执行文件已索引可执行文件从本地可执行文件索引发现。
gtk2-update-icon-cache可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

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

页面生成时间2026-08-03
管理器版本2.24.33
管理器更新时间2026-08-02
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:gtk+
版本2.24.33
软件包管理器Homebrew
主页https://gtk.org/
最后更新2026-08-02T20:52:09+09:00
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

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

dnf95%

gtk+ 1.2.10-113.fc45

The GIMP ToolKit

http://www.gtk.org/

sudo dnf install gtk+
  • License: LGPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gtk+
  • 8 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式:Gtk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gtk+ from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
dnf95%

gtk+-devel 1.2.10-113.fc45

Development tools for GTK+ (GIMP ToolKit) applications

http://www.gtk.org/

sudo dnf install gtk+-devel
  • License: LGPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gtk+
  • 11 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Gtk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gtk+-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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