macOS
brew install edlocal Homebrew formula metadata
安装
brew install edlocal Homebrew formula metadata
sudo apk add edAlpine Linux edge package indexes · ed · 来源: dl-cdn.alpinelinux.org
sudo dnf install edFedora Rawhide package metadata · ed · 来源: dl.fedoraproject.org
nix profile install nixpkgs#ednixpkgs package indexes · pkgs/by-name/ed/ed/package.nix · 来源: api.github.com
sudo pacman -S edArch Linux sync databases · ed · 来源: geo.mirror.pkgbuild.com
sudo zypper install edopenSUSE Tumbleweed package metadata · ed · 来源: download.opensuse.org
scoop install main/redScoop official bucket manifest trees · bucket/red.json · 来源: api.github.com
概览
Classic UNIX line editor
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ed | cli | 全局可执行文件 | |
red | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ed |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
ed 1.21.1-1
classic UNIX line editor
https://www.gnu.org/software/ed/
sudo apt install eded
nix profile install nixpkgs#eded 1.20.1-1
classic UNIX line editor
https://www.gnu.org/software/ed/
sudo apt install eded 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 eded-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-doced 1.22.5-2.fc45
The GNU line editor
https://www.gnu.org/software/ed/
sudo dnf install eded 1.22.5-1
A POSIX-compliant line-oriented text editor
https://www.gnu.org/software/ed/ed.html
sudo pacman -S eded 1.22.5-1.1
A line-oriented text editor
https://www.gnu.org/software/ed/
sudo zypper install eded
sudo port install edred
nix profile install nixpkgs#redmain/red
scoop install main/red来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.