Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, pacman, zypper, scoop, winget 安装 gnu-sed

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gnu-sed

local Homebrew formula metadata

Linux

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

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

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

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

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

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

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

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

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

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

Windows

Chocolatey已验证 · 92%
choco install sed

Chocolatey community package catalog · sed · 来源: community.chocolatey.org

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

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

Windows Package Manager已验证 · 92%
winget install --id mbuilov.sed -e

Windows Package Manager source index · mbuilov.sed · 来源: cdn.winget.microsoft.com

概览

软件包摘要

GNU implementation of the famous stream editor

历史

项目历史与用法

GNU sed is the GNU implementation of sed, the Unix stream editor. It is a non-interactive command-line text editor used to transform text from files or pipelines.

项目历史

GNU sed carries forward the sed model of scripted, line-oriented editing. The GNU manual documents it as a stream editor that makes one pass over input, distinguishing it from interactive editors while keeping the ed-like idea of applying commands to selected text.

The GNU sed repository README describes the package as the GNU implementation of the Unix stream editor and points users to the GNU website, NEWS file, ChangeLog, AUTHORS, and installed Info/man documentation. The manual copyright history begins in 1998 and the documented command set grew to include GNU extensions such as in-place editing, separate-file processing, sandbox mode, null-data processing, and extended regular-expression options.

采用历史

sed is a standard part of shell programming culture, and GNU sed became the expected sed on many GNU/Linux systems. Its behavior also matters on macOS and BSD systems because developers often install GNU sed through package managers when scripts depend on GNU extensions rather than the platform sed.

使用方式

Practitioners use GNU sed for one-liners, build scripts, packaging scripts, log processing, generated-file edits, substitutions, deletions, selected printing, and in-place changes. Common workflows pass a script directly on the command line, load scripts with -f, read standard input in a pipeline, or combine sed with find, sort, grep, awk, and shell loops.

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

GNU sed is a package-ecosystem stress test because tiny semantic differences affect thousands of scripts. Options such as -i, -E, -z, --posix, and --sandbox are small command-line details that determine whether a script is portable, GNU-specific, or safer to run on generated input.

时间线

  • 1998: GNU sed manual copyright history begins.
  • 2018: Version 4.6 notes record output-buffering improvements and clearer command diagnostics.
  • 2022: Version 4.9 notes include fixes for very large inputs and Unicode matching.
  • 2026: Version 4.10 notes describe security and correctness fixes in global substitution and in-place symlink handling.

Related projects

  • GNU sed sits beside grep, awk, ed, Perl, and shell as part of the classic Unix text-processing toolkit.

安全态势

风险级别:blue

broad file, network, media, or database tool signal.

风险分类器

blue 风险 · 中 置信度 · tool

原因

  • broad file, network, media, or database tool signal

信号

  • text:stream

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

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

安装元数据

软件包元数据

软件包键brew:gnu-sed
版本4.10
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gnu-sed
主页https://www.gnu.org/software/sed/
仓库https://git.savannah.gnu.org/cgit/sed.git
上游文档https://www.gnu.org/software/sed/manual/sed.html
许可证GPL-3.0-or-later
源码归档https://ftpmirror.gnu.org/gnu/sed/sed-4.10.tar.xz
最后更新2026-04-22T14:27:47Z
Pulseupdated
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项GNU "sed" has been installed as "gsed". If you need to use it as "sed", you can add a "gnubin" directory to your PATH from your bashrc like: PATH="$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin:$PATH"

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegnu-sed
Aliases
  • gsed
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt92%

sed 4.9-2+deb13u1

GNU stream editor for filtering/transforming text

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

sudo apt install sed
  • Section: utils
  • Architecture: amd64
  • installed executable or alias match
  • 匹配方式:Sed
Debian stable package indexes · deb.debian.org · Debian stable package indexes: sed from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt92%

sed 4.9-2build1

GNU stream editor for filtering/transforming text

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

sudo apt install sed
  • Section: utils
  • Architecture: amd64
  • installed executable or alias match
  • 匹配方式:Sed
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: sed from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk92%

sed 4.10-r0

GNU stream editor

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

sudo apk add sed
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: sed
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Sed
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sed from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

sed-doc 4.10-r0

GNU stream editor (documentation)

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

sudo apk add sed-doc
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: sed
  • installed executable or alias match
  • 匹配方式:Sed
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sed-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf92%

sed 4.10-1.fc45

A GNU stream text editor

http://sed.sourceforge.net/

sudo dnf install sed
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: sed
  • 4 依赖
  • 3 提供
  • installed executable or alias match
  • 匹配方式:Sed
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: sed from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman92%

sed 4.10-1

GNU stream editor

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

sudo pacman -S sed
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 2 依赖
  • installed executable or alias match
  • 匹配方式:Sed
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: sed from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz
zypper92%

sed 4.10-1.2

A Stream-Oriented Non-Interactive Text Editor

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

sudo zypper install sed
  • License: GPL-3.0-or-later
  • Category: System/Base
  • Architecture: x86_64
  • Source Package: sed
  • 3 依赖
  • 3 提供
  • installed executable or alias match
  • 匹配方式:Sed
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: sed from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

sed-lang 4.10-1.2

Translations for package sed

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

sudo zypper install sed-lang
  • License: GPL-3.0-or-later
  • Category: System/Localization
  • Architecture: noarch
  • Source Package: sed
  • 1 依赖
  • 3 提供
  • installed executable or alias match
  • 匹配方式:Sed
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: sed-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
Chocolatey92%

sed

choco install sed
  • installed executable or alias match
  • 匹配方式:Sed
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: sed from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','scriptcs'
Scoop92%

main/sed

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

mbuilov.sed

winget install --id mbuilov.sed -e
  • installed executable or alias match
  • 匹配方式:Sed
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: mbuilov.sed from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

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

使用的来源

  • 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