Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ed

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ed

MacPorts ports tree · editors/ed/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add ed

Alpine Linux edge package indexes · ed · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install ed

Debian stable package indexes · ed · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install ed

Fedora Rawhide package metadata · ed · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#ed

nixpkgs package indexes · pkgs/by-name/ed/ed/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S ed

Arch Linux sync databases · ed · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install ed

openSUSE Tumbleweed package metadata · ed · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/red

Scoop official bucket manifest trees · bucket/red.json · 来源: api.github.com

概览

软件包摘要

Classic UNIX line editor

命令和别名

  • ed
  • red

历史

项目历史与用法

GNU ed is the GNU implementation of the classic Unix line editor. In package-manager terms it is tiny, old-fashioned, standardized, scriptable, and still worth shipping because the `ed` utility is part of the Unix/POSIX tool vocabulary.

项目历史

The POSIX specification defines `ed` as a line-oriented text editor with command and input modes. That standardized interface is the historically important part of the package: `ed` is a small command language for editing text through standard input, not a screen editor.

The GNU package supplies the Free Software Foundation's maintained implementation, including both `ed` and the restricted variant `red`. GNU FTP release archives show the modern GNU release stream at least from ed 1.0 in August 2008 through ed 1.22.5 in February 2026.

采用历史

ed persists because it is standardized, scriptable, and expected on Unix-like systems even though most interactive editing moved to screen editors long ago. Its Homebrew, Debian, Ubuntu, Alpine, Arch, Nix, MacPorts, Scoop, and openSUSE packaging in the batch input reflects that baseline utility role.

GNU ed's adoption is therefore less about visible user enthusiasm and more about compatibility: scripts, recovery procedures, minimal systems, teaching material, and standards conformance still need a line editor named `ed`.

使用方式

POSIX documents `ed [ -p string ] [ -s ] [ file ]`, with commands read from standard input. In command mode, input is interpreted as editing commands; in input mode, input is inserted as text.

GNU ed also ships `red`, a restricted form useful in constrained editing contexts. The utility is commonly used non-interactively in scripts or as a lowest-common-denominator editor on small systems.

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

ed is package-manager bedrock: a tiny utility that looks obsolete until a bootstrap environment, recovery shell, POSIX test, or ancient script expects it. Shipping it is a compatibility decision as much as a feature decision.

For people who care about Unix history, `ed` is also a living fossil in the best sense: the interface in modern packages is still recognizably the line-editor model described by POSIX.

时间线

  • 2008-08: GNU FTP archive lists ed 1.0.
  • 2015-03: GNU FTP archive lists ed 1.11.
  • 2020-02: GNU FTP archive lists ed 1.16.
  • 2024-04: GNU FTP archive lists ed 1.20.2.
  • 2026-02: GNU FTP archive lists ed 1.22.5.

Related projects

  • POSIX defines the portable `ed` utility interface.
  • `red` is the restricted editor installed with GNU ed.
  • Screen editors such as vi and Emacs largely displaced ed for daily interactive editing, but not for the standardized utility role.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
edcli全局可执行文件
redcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本1.22.5
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.gnu.org/software/ed/ed.html

安装元数据

软件包元数据

软件包键brew:ed
版本1.22.5
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ed
主页https://www.gnu.org/software/ed/ed.html
仓库https://git.savannah.gnu.org/cgit/ed.git
上游文档https://www.gnu.org/software/ed/manual/ed_manual.html
许可证GPL-3.0-or-later
源码归档https://ftpmirror.gnu.org/gnu/ed/ed-1.22.5.tar.lz
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc like: PATH="$HOMEBREW_PREFIX/opt/ed/libexec/gnubin:$PATH"

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameed
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

ed 1.21.1-1

classic UNIX line editor

https://www.gnu.org/software/ed/

sudo apt install ed
  • Section: editors
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Ed
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ed from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ed

nix profile install nixpkgs#ed
  • normalized package name match
  • 匹配方式:Ed
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ed/ed/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

ed 1.20.1-1

classic UNIX line editor

https://www.gnu.org/software/ed/

sudo apt install ed
  • Section: editors
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Ed
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ed from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

ed 1.22.5-r0

Line-oriented text editor used to create, display, modify and otherwise manipulate text files

https://www.gnu.org/software/ed/

sudo apk add ed
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: ed
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ed
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ed from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

ed-doc 1.22.5-r0

Line-oriented text editor used to create, display, modify and otherwise manipulate text files (documentation)

https://www.gnu.org/software/ed/

sudo apk add ed-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: ed
  • normalized package name match
  • 匹配方式:Ed
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ed-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

ed 1.22.5-2.fc45

The GNU line editor

https://www.gnu.org/software/ed/

sudo dnf install ed
  • License: GPL-2.0-only AND GFDL-1.3-no-invariants-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ed
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ed
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ed from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

ed 1.22.5-1

A POSIX-compliant line-oriented text editor

https://www.gnu.org/software/ed/ed.html

sudo pacman -S ed
  • License: GPL-2.0-only
  • Architecture: x86_64
  • 2 依赖
  • normalized package name match
  • 匹配方式:Ed
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: ed from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

ed 1.22.5-1.1

A line-oriented text editor

https://www.gnu.org/software/ed/

sudo zypper install ed
  • License: GPL-3.0-or-later AND LGPL-2.1-or-later
  • Category: Productivity/Text/Editors
  • Architecture: x86_64
  • Source Package: ed
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ed
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ed from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

ed

sudo port install ed
  • normalized package name match
  • 匹配方式:Ed
MacPorts ports tree · api.github.com · MacPorts ports tree: editors/ed/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Nix92%

red

nix profile install nixpkgs#red
  • installed executable or alias match
  • 匹配方式:Red
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/re/red/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Scoop92%

main/red

scoop install main/red
  • installed executable or alias match
  • 匹配方式:Red
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/red.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

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

Combined YAML source

View the package source record on GitHub.

combined/ed.yml

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment