# 使用 Homebrew, dnf 安装 webkitgtk

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

## 安装

```sh
sudo av install brew:webkitgtk
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install webkitgtk
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install javascriptcoregtk4.1
```

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

## 软件包事实

- **软件包键:** brew:webkitgtk
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/webkitgtk>
- **版本:** 2.52.5
- **来源摘要:** GTK interface to WebKit
- **主页:** <https://webkitgtk.org>
- **上游文档:** <https://webkitgtk.org>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://webkitgtk.org/releases/webkitgtk-2.52.5.tar.xz>
- **最后更新:** 2026-07-09T14:20:56Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- WebKitWebDriver (cli)
- WebKitWebDriver (别名)

## 依赖

- at-spi2-core
- cairo
- enchant
- expat
- fontconfig
- freetype
- gdk-pixbuf
- glib
- gstreamer
- gtk+3
- harfbuzz
- icu4c@78
- jpeg-turbo
- jpeg-xl
- libavif
- libdrm
- libepoxy
- libgcrypt
- libnotify
- libpng
- libsecret
- libsoup
- libtasn1
- libwpe
- libx11
- libxcomposite
- libxml2
- libxslt
- libxt
- little-cms2
- mesa
- openjpeg
- pango
- sqlite
- sysprof
- systemd
- wayland
- webp
- woff2
- wpebackend-fdo
- zlib-ng-compat

## 构建依赖

- cmake
- gettext
- gobject-introspection
- gperf
- perl
- pkgconf
- python@3.14
- ruby
- unifdef

## 安装行为

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

## 版本和新鲜度

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

WebKitGTK is the GTK port of the WebKit browser engine. It provides an embeddable web view and JavaScript engine bindings for Linux and other GTK-based systems, serving applications that need anything from a small HTML/CSS UI surface to a full browser.

### 项目历史

The old WebKit wiki described the GTK port as a browser component for the portable GTK UI toolkit, developed inside the official WebKit source tree and covered by WebKit buildbots and layout tests. That placement made WebKitGTK part of the upstream browser-engine project rather than a separate downstream fork.

The WebKitGTK project site, copyrighting the WebKitGTK Team from 2009 onward, presents the port as a full-featured WebKit rendering engine for hybrid applications, browsers, desktop computers, and embedded devices. It also identifies WebKitGTK as the official web engine of the GNOME platform and lists GNOME Web/Epiphany among browsers using it.

A major transition arrived with WebKitGTK+ 2.0.0 on March 31, 2013. That first stable 2.0 release built both WebKit1 and WebKit2 APIs by default, declared WebKit2 stable from an API/ABI compatibility perspective, and moved WebKit1 into maintenance mode. The shift aligned GTK embedding with WebKit's multiprocess architecture, improving isolation between web content and application UI.

### 采用历史

WebKitGTK became important because Linux desktop applications needed an embeddable, maintained browser engine that matched GTK conventions. GNOME's use made it part of the default stack for applications that display web content, and the project has kept a stable-release process with security advisories for distributions and application maintainers.

The API-version story reflects both long-term compatibility and platform churn. As summarized by GNOME/WebKit maintainer Michael Catanzaro in 2025, supported upstream API versions included `webkit2gtk-4.0` for GTK 3 with libsoup 2, `webkit2gtk-4.1` for GTK 3 with libsoup 3, and `webkitgtk-6.0` for GTK 4. That history matters to packagers because different Linux distributions have carried different binary package names for the same API families.

### 使用方式

Application developers use WebKitGTK to embed web content in GTK applications through stable C/GObject APIs. Typical uses include full browsers, documentation viewers, OAuth/login panes, desktop apps with HTML front ends, and embedded-device UIs that want WebKit's web-platform implementation without shipping a separate browser.

The modern WebKit2-style architecture separates web processes from the UI process, so a page crash or hang is less likely to bring down the embedding application. The project site also highlights GStreamer-backed media, accessibility work, GPU compositing, CSS transforms, and WebGL as part of the port's role as a complete web-platform component.

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

For package maintainers, WebKitGTK is a high-impact dependency because it is both a developer library and a browser engine with a security-update cadence. Its API names, GTK generation, libsoup generation, and distribution package names have real consequences for build compatibility across GNOME, Fedora, Debian, Homebrew, and smaller ports.

It is also one of the packages where the package name is history: `webkitgtk`, `webkit2gtk-4.0`, `webkit2gtk-4.1`, and `webkitgtk-6.0` encode shifts from WebKit1 to WebKit2, GTK 3 to GTK 4, and libsoup 2 to libsoup 3.

### 时间线

- 2009: WebKitGTK project site copyright period begins for the WebKitGTK Team.
- 2013-03-31: WebKitGTK+ 2.0.0 released; WebKit2 API considered stable and WebKit1 moved to maintenance mode.
- 2014-09-24: WebKitGTK+ 2.6.0 released, part of the era that introduced the long-lived `webkit2gtk-4.0` API family.
- 2021: WebKitGTK 2.32 introduced the `webkit2gtk-4.1` API family for GTK 3 with libsoup 3.
- 2023: WebKitGTK 2.40 introduced the `webkitgtk-6.0` API family for GTK 4.
- 2026-06-23: WebKitGTK 2.53.4 listed as the current unstable release on the project site.

### Related projects

- WebKitGTK is part of the broader WebKit project and is closely tied to GNOME, GTK, GObject, JavaScriptCore, GStreamer, libsoup, and GNOME Web/Epiphany. Its sibling WPE WebKit targets embedded and appliance-style environments.

### 来源

- <https://blogs.gnome.org/mcatanzaro/2025/04/28/webkitgtk-api-versions/>
- <https://github.com/WebKit/WebKit>
- <https://trac.webkit.org/wiki/WebKitGTK>
- <https://webkitgtk.org/>
- <https://webkitgtk.org/2013/03/31/webkitgtk2.0.0-released.html>
- <https://webkitgtk.org/news.html>


## 安全说明

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:** webkitgtk
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** linux
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- dnf - javascriptcoregtk4.1 - 2.53.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: javascriptcoregtk4.1 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | JavaScript engine from webkit2gtk4.1 | https://www.webkitgtk.org/
- dnf - javascriptcoregtk4.1-devel - 2.53.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: javascriptcoregtk4.1-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for JavaScript engine from webkit2gtk4.1 | https://www.webkitgtk.org/
- dnf - javascriptcoregtk6.0 - 2.53.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: javascriptcoregtk6.0 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | JavaScript engine from webkitgtk6.0 | https://www.webkitgtk.org/
- dnf - javascriptcoregtk6.0-devel - 2.53.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: javascriptcoregtk6.0-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for JavaScript engine from webkitgtk6.0 | https://www.webkitgtk.org/
- dnf - webkit2gtk4.1 - 2.53.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: webkit2gtk4.1 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | WebKitGTK for GTK 3 and libsoup 3 | https://www.webkitgtk.org/
- dnf - webkit2gtk4.1-devel - 2.53.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: webkit2gtk4.1-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for webkit2gtk4.1 | https://www.webkitgtk.org/
- dnf - webkit2gtk4.1-doc - 2.53.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: webkit2gtk4.1-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation files for webkit2gtk4.1 | https://www.webkitgtk.org/
- dnf - webkitgtk6.0 - 2.53.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: webkitgtk6.0 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | WebKitGTK for GTK 4 | https://www.webkitgtk.org/
- dnf - webkitgtk6.0-devel - 2.53.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: webkitgtk6.0-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for webkitgtk6.0 | https://www.webkitgtk.org/
- dnf - webkitgtk6.0-doc - 2.53.4-2.fc45: normalized package name match | Fedora Rawhide package metadata: webkitgtk6.0-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation files for webkit2gtk5.0 | https://www.webkitgtk.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.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [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.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://pkg.so/zh-hans/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [fontconfig](https://pkg.so/zh-hans/brew/fontconfig/) - Runtime dependency declared by Homebrew.
- [freetype](https://pkg.so/zh-hans/brew/freetype/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Build dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Build dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [pango](https://pkg.so/zh-hans/brew/pango/) - Shares pkgdb curated category or tags: cli, developer-tools, gtk.
- [gtk+3](https://pkg.so/zh-hans/brew/gtk-3/) - Shares pkgdb curated category or tags: cli, developer-tools, gtk.
- [elfutils](https://pkg.so/zh-hans/brew/elfutils/) - Shares pkgdb curated category or tags: cli, developer-tools, linux.
- [gtk4](https://pkg.so/zh-hans/brew/gtk4/) - Shares pkgdb curated category or tags: cli, developer-tools, gtk.
- [dtc](https://pkg.so/zh-hans/brew/dtc/) - Shares pkgdb curated category or tags: cli, developer-tools, linux.
- [vte3](https://pkg.so/zh-hans/brew/vte3/) - Shares pkgdb curated category or tags: cli, developer-tools, gtk.
- [lttng-ust](https://pkg.so/zh-hans/brew/lttng-ust/) - Shares pkgdb curated category or tags: cli, developer-tools, linux.
- [gspell](https://pkg.so/zh-hans/brew/gspell/) - Local package facts share a topical domain. Shared terms: at-spi2-core, cairo, cli, core, developer.
- [spice-gtk](https://pkg.so/zh-hans/brew/spice-gtk/) - Local package facts share a topical domain. Shared terms: cairo, cli, developer, developer-tools, gdk.

## Combined YAML source

View the package source record on GitHub. [combined/webkitgtk.yml](https://github.com/mxcl/pkgdb/blob/main/combined/webkitgtk.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
