# gnu-sed を Homebrew, apk, chocolatey, apt, dnf, pacman, zypper, scoop, winget でインストール

gnu-sed のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:gnu-sed
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install gnu-sed
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add sed
```

  証拠: Alpine Linux edge package indexes: sed from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install sed
```

  証拠: Debian stable package indexes: sed from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install sed
```

  証拠: Fedora Rawhide package metadata: sed from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S sed
```

  証拠: Arch Linux sync databases: sed from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install sed
```

  証拠: openSUSE Tumbleweed package metadata: sed from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install sed
```

  証拠: Chocolatey community package catalog: sed from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','samsung-magician'

- Scoop (92%):

```sh
scoop install main/sed
```

  証拠: Scoop official bucket manifest trees: bucket/sed.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id mbuilov.sed -e
```

  証拠: Windows Package Manager source index: mbuilov.sed from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:gnu-sed
- **パッケージマネージャ:** Homebrew
- **バージョン:** 4.10
- **ソース概要:** GNU implementation of the famous stream editor
- **ホームページ:** <https://www.gnu.org/software/sed/>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- sed (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 4.10
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://formulae.brew.sh/formula/gnu-sed>
- <https://git.savannah.gnu.org/cgit/sed.git/plain/NEWS>
- <https://git.savannah.gnu.org/cgit/sed.git/plain/README>
- <https://www.gnu.org/software/sed/>
- <https://www.gnu.org/software/sed/manual/sed.html>


## セキュリティノート

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

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

## 他のパッケージマネージャ記録

- Debian apt - sed - 4.9-2+deb13u1: installed executable or alias match | Debian stable package indexes: sed from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU stream editor for filtering/transforming text | https://www.gnu.org/software/sed/
- Ubuntu apt - sed - 4.9-2build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: sed from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNU stream editor for filtering/transforming text | https://www.gnu.org/software/sed/
- apk - sed - 4.10-r0: installed executable or alias match | Alpine Linux edge package indexes: sed from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU stream editor | https://www.gnu.org/software/sed
- apk - sed-doc - 4.10-r0: installed executable or alias match | Alpine Linux edge package indexes: sed-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU stream editor (documentation) | https://www.gnu.org/software/sed
- dnf - sed - 4.10-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: sed from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A GNU stream text editor | http://sed.sourceforge.net/
- pacman - sed - 4.10-1: installed executable or alias match | Arch Linux sync databases: sed from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | GNU stream editor | https://www.gnu.org/software/sed/
- zypper - sed - 4.10-1.4: installed executable or alias match | openSUSE Tumbleweed package metadata: sed from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A Stream-Oriented Non-Interactive Text Editor | https://www.gnu.org/software/sed/
- zypper - sed-lang - 4.10-1.4: installed executable or alias match | openSUSE Tumbleweed package metadata: sed-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Translations for package sed | https://www.gnu.org/software/sed/
- Chocolatey - sed: installed executable or alias match | Chocolatey community package catalog: sed from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','samsung-magician'
- Scoop - main/sed: installed executable or alias match | Scoop official bucket manifest trees: bucket/sed.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - mbuilov.sed: installed executable or alias match | Windows Package Manager source index: mbuilov.sed from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/gnu-sed.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gnu-sed.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
