# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 gedit

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

## 安装

```sh
sudo av install brew:gedit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gedit
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gedit
```

  证据: MacPorts ports tree: gnome/gedit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add gedit
```

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

- Debian apt (92%):

```sh
sudo apt install gedit
```

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

- dnf (92%):

```sh
sudo dnf install gedit
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gedit
```

  证据: nixpkgs package indexes: pkgs/by-name/ge/gedit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gedit
```

  证据: Arch Linux sync databases: gedit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gedit
```

  证据: openSUSE Tumbleweed package metadata: gedit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install extras/gedit
```

  证据: Scoop official bucket manifest trees: bucket/gedit.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:gedit
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gedit>
- **版本:** 50.0
- **来源摘要:** GNOME text editor
- **主页:** <https://gedit-technology.github.io/apps/gedit/>
- **上游文档:** <https://gedit-technology.github.io/apps/gedit/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://gitlab.gnome.org/World/gedit/gedit/-/archive/50.0/gedit-50.0.tar.bz2>
- **最后更新:** 2026-08-04T13:11:22+01:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gedit (cli)
- gedit (别名)

## 依赖

- adwaita-icon-theme
- cairo
- gdk-pixbuf
- gettext
- glib
- gobject-introspection
- gsettings-desktop-schemas
- gspell
- gtk+3
- gtk-mac-integration
- libgedit-amtk
- libgedit-gfls
- libgedit-gtksourceview
- libgedit-tepl
- libpeas@1
- pango

## 构建依赖

- desktop-file-utils
- docbook-xsl
- gettext
- gtk-doc
- itstool
- meson
- ninja
- pkgconf

## 安装行为

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

## 版本和新鲜度

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

gedit is a general-purpose text editor associated with GNOME and built on GTK and Gedit Technology libraries.

### 项目历史

The official gedit site and README state that development started in 1998 at the beginnings of the GNOME project. The current project describes gedit as easy to learn, comfortable to use, and suitable for simple notes as well as software-development-oriented editing.

### 采用历史

The input package facts list gedit across many package managers, including apk, Homebrew, Debian, Fedora dnf, MacPorts, Nix, pacman, Scoop, Ubuntu, and zypper. That breadth matches gedit's long role as a familiar GTK/GNOME editor available through desktop Linux and cross-platform packaging channels.

### 使用方式

Users run gedit as a desktop text editor for notes, documents, source code, and structured text. Developers and plugin authors use the official developer documentation and the main Git repository README and CONTRIBUTING files as entry points.

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

gedit is significant to package-manager users because it is a long-lived GUI editor that carries GTK, GNOME, plugin, syntax-highlighting, and cross-platform desktop packaging concerns in a single application.

### 时间线

- 1998: gedit development started near the beginning of the GNOME project.
- 2024: gedit 47 release notes highlighted improved API documentation for plugin developers.
- 2026: The official site copyright and release posts show ongoing maintenance by the gedit team.

### Related projects

- GTK, Gedit Technology, GtkSourceView, libpeas, gspell, and GNOME are related projects named by the official gedit site and technology pages.

### 来源

- <https://gedit-text-editor.org/>
- <https://gedit-text-editor.org/technology.html>
- <https://gitlab.gnome.org/World/gedit/gedit>


## 安全说明

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:** gedit
- **Version Scheme:** 0
- **Revision:** 2
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - gedit - 48.1-4: normalized package name match | Debian stable package indexes: gedit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | popular text editor for the GNOME desktop environment | https://gedit-text-editor.org/
- Debian apt - gedit-common - 48.1-4: normalized package name match | Debian stable package indexes: gedit-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | popular text editor for the GNOME desktop environment (support files) | https://gedit-text-editor.org/
- Debian apt - gedit-dev - 48.1-4: normalized package name match | Debian stable package indexes: gedit-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | popular text editor for the GNOME desktop environment (dev files) | https://gedit-text-editor.org/
- Nix - gedit: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/gedit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gedit - 46.2-2: normalized package name match | Ubuntu 24.04 LTS package indexes: gedit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | popular text editor for the GNOME desktop environment | https://gedit-technology.github.io/apps/gedit/
- Ubuntu apt - gedit-common - 46.2-2: normalized package name match | Ubuntu 24.04 LTS package indexes: gedit-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | popular text editor for the GNOME desktop environment (support files) | https://gedit-technology.github.io/apps/gedit/
- Ubuntu apt - gedit-dev - 46.2-2: normalized package name match | Ubuntu 24.04 LTS package indexes: gedit-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | popular text editor for the GNOME desktop environment (dev files) | https://gedit-technology.github.io/apps/gedit/
- apk - gedit - 50.0-r0: normalized package name match | Alpine Linux edge package indexes: gedit from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | An easy-to-use and general-purpose text editor | https://gedit-text-editor.org
- apk - gedit-dev - 50.0-r0: normalized package name match | Alpine Linux edge package indexes: gedit-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | An easy-to-use and general-purpose text editor (development files) | https://gedit-text-editor.org
- apk - gedit-doc - 50.0-r0: normalized package name match | Alpine Linux edge package indexes: gedit-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | An easy-to-use and general-purpose text editor (documentation) | https://gedit-text-editor.org
- apk - gedit-lang - 50.0-r0: normalized package name match | Alpine Linux edge package indexes: gedit-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Languages for package gedit | https://gedit-text-editor.org
- dnf - gedit - 50.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: gedit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Text editor for the GNOME desktop | https://gedit-text-editor.org/
- dnf - gedit-devel - 50.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: gedit-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Support for developing plugins for the gedit text editor | https://gedit-text-editor.org/
- pacman - gedit - 50.0-3: normalized package name match | Arch Linux sync databases: gedit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Easy-to-use general-purpose text editor | https://gedit-text-editor.org/
- zypper - gedit - 50.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: gedit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | UTF-8 text editor | https://gedit-text-editor.org
- zypper - gedit-devel - 50.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: gedit-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for the gedit text editor | https://gedit-text-editor.org


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [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.
- [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.
- [gobject-introspection](https://pkg.so/zh-hans/brew/gobject-introspection/) - Runtime dependency declared by Homebrew.
- [gtk+3](https://pkg.so/zh-hans/brew/gtk-3/) - 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.
- [enter-tex](https://pkg.so/zh-hans/brew/enter-tex/) - Shares pkgdb curated category or tags: cli, gnome, gtk, productivity, text-editor.
- [kibi](https://pkg.so/zh-hans/brew/kibi/) - Shares pkgdb curated category or tags: cli, productivity, syntax-highlighting, text-editor.
- [emacs](https://pkg.so/zh-hans/brew/emacs/) - Shares pkgdb curated category or tags: cli, productivity, text-editor.
- [amp](https://pkg.so/zh-hans/brew/amp/) - Shares pkgdb curated category or tags: cli, productivity, text-editor.
- [gnome-recipes](https://pkg.so/zh-hans/brew/gnome-recipes/) - Shares pkgdb curated category or tags: cli, desktop-app, gnome, gtk, productivity.
- [ad](https://pkg.so/zh-hans/brew/ad/) - Shares pkgdb curated category or tags: cli, productivity, text-editor.
- [openvi](https://pkg.so/zh-hans/brew/openvi/) - Shares pkgdb curated category or tags: cli, productivity, text-editor.
- [jupp](https://pkg.so/zh-hans/brew/jupp/) - Shares pkgdb curated category or tags: cli, productivity, text-editor.
- [cherrytree](https://pkg.so/zh-hans/brew/cherrytree/) - Local package facts share a topical domain. Shared terms: adwaita, adwaita-icon-theme, cairo, cli, desktop.

## Combined YAML source

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