# Install gnu-sed with Homebrew, apk, chocolatey, apt, dnf, pacman, scoop, winget, zypper

GNU implementation of the famous stream editor. Version 4.10 via Homebrew; verified 2026-04-22.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add sed
```

  Evidence: 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
```

  Evidence: 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
```

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

- pacman (92%):

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

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: sed from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install sed
```

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

- Scoop (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:gnu-sed
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gnu-sed>
- **Version:** 4.10
- **Source summary:** GNU implementation of the famous stream editor
- **Homepage:** <https://www.gnu.org/software/sed/>
- **Repository:** <https://git.savannah.gnu.org/cgit/sed.git>
- **Upstream docs:** <https://www.gnu.org/software/sed/manual/sed.html>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://ftpmirror.gnu.org/gnu/sed/sed-4.10.tar.xz>
- **Last updated:** 2026-04-22T14:27:47Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- sed (cli)
- sed (alias)

## Install behavior

- Post-install hook: not defined
- Caveats: 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"
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.10
- Package-manager updated: 2026-04-22
- Local data: ok
- Upstream repository: https://www.gnu.org/software/sed/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gnu-sed
- **Aliases:** gsed
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- 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-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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.2: installed executable or alias match | openSUSE Tumbleweed package metadata: sed from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Stream-Oriented Non-Interactive Text Editor | https://www.gnu.org/software/sed/
- zypper - sed-lang - 4.10-1.2: installed executable or alias match | openSUSE Tumbleweed package metadata: sed-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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','scriptcs'
- 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


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [crosstool-ng](https://www.automicvault.com/pkg/brew/crosstool-ng/) - Popular package that depends on this formula.
- [ngs](https://www.automicvault.com/pkg/brew/ngs/) - Popular package that depends on this formula.
- [nnn](https://www.automicvault.com/pkg/brew/nnn/) - Popular package that depends on this formula.
- [pcb](https://www.automicvault.com/pkg/brew/pcb/) - Popular package that depends on this formula.
- [plowshare](https://www.automicvault.com/pkg/brew/plowshare/) - Popular package that depends on this formula.
- [quilt](https://www.automicvault.com/pkg/brew/quilt/) - Popular package that depends on this formula.
- [minised](https://www.automicvault.com/pkg/brew/minised/) - Shares av.db curated category or tags: cli, developer-tools, stream-editor, text-processing, unix.
- [randomize-lines](https://www.automicvault.com/pkg/brew/randomize-lines/) - Shares av.db curated category or tags: cli, developer-tools, text-processing, unix.
- [rgxg](https://www.automicvault.com/pkg/brew/rgxg/) - Shares av.db curated category or tags: cli, developer-tools, regex, text-processing.
- [sd](https://www.automicvault.com/pkg/brew/sd/) - Shares av.db curated category or tags: cli, developer-tools, regex, text-processing.
- [ssed](https://www.automicvault.com/pkg/brew/ssed/) - Shares av.db curated category or tags: cli, developer-tools, stream-editor, text-processing.
- [align](https://www.automicvault.com/pkg/brew/align/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [bsdconv](https://www.automicvault.com/pkg/brew/bsdconv/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [cconv](https://www.automicvault.com/pkg/brew/cconv/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [enscript](https://www.automicvault.com/pkg/brew/enscript/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gnu, processing.
- [gawk](https://www.automicvault.com/pkg/brew/gawk/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gnu, processing.
- [grep](https://www.automicvault.com/pkg/brew/grep/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gnu, processing.

## Combined YAML source

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


## Sources

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