# srgn mit Homebrew, MacPorts, Nix, pacman installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für srgn in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:srgn
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install srgn
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install srgn
```

  Evidenz: MacPorts ports tree: devel/srgn/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#srgn
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/sr/srgn/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S srgn
```

  Evidenz: Arch Linux sync databases: srgn from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Paketfakten

- **Paketschlüssel:** brew:srgn
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/srgn>
- **Version:** 0.14.2
- **Quellzusammenfassung:** Code surgeon for precise text and code transplantation
- **Homepage:** <https://github.com/alexpovel/srgn>
- **Repository:** <https://github.com/alexpovel/srgn>
- **Lizenz:** MIT
- **Quellarchiv:** <https://github.com/alexpovel/srgn/archive/refs/tags/srgn-v0.14.2.tar.gz>
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- srgn (cli)
- srgn (Alias)

## Build-Abhängigkeiten

- rust

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 0.14.2
- lokale Daten: OK
- Upstream-Repository: https://github.com/alexpovel/srgn
- neueste erkannte Version: srgn-v0.14.2 (aktuell)
- Info: No package-manager update timestamp was available.
## Projektgeschichte und Nutzung

srgn is a Rust command-line search and transformation tool that combines regular-expression scopes with optional syntax-aware scopes based on programming-language grammars. Its author characterizes it as a mix of `tr`, `sed`, `ripgrep`, and tree-sitter.

### Projektgeschichte

The public repository was created in 2023 and released v0.1.0 that October. The README records that its earliest core was a Rust rewrite of a tool devoted to German character substitutions; it then expanded into a general code-aware search and transformation utility.

### Adoptionsgeschichte

The official installation guide documents release binaries, cargo-binstall, Homebrew, Nix and a repository flake, MacPorts, and compilation through Cargo. The package metadata additionally records a Pacman package, giving srgn unusually broad distribution for a focused refactoring CLI.

### Wie es verwendet wird

srgn can search or transform stdin and files with regular expressions, then narrow operations to syntax-aware language scopes. Actions include replacement, case conversion, deletion, squeezing, and language-specific transformations, and shell completions are built into the CLI.

### Warum Paket-Nerds sich dafür interessieren

srgn sits between traditional Unix text filters and IDE refactoring: it preserves a composable command-line interface while using parsers to select structural code regions. Its prebuilt binaries and presence across Cargo, Homebrew, Nix, MacPorts, and Pacman make it especially accessible to polyglot CLI users.

### Zeitleiste

- 2023: Official repository created.
- 2023: v0.1.0 published.
- 2025: v0.14.0 changed replacement syntax to reduce accidental destructive use.
- 2026: v0.14.2 published.

### Related projects

- The README positions srgn alongside tr, sed, ripgrep, and tree-sitter while distinguishing its combination of regex actions and grammar-aware scopes.

### Quellen

- <https://docs.rs/srgn/latest/srgn>
- <https://github.com/alexpovel/srgn#readme>
- <https://github.com/alexpovel/srgn/releases>
- source_facts.package-manager


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Details aus der Quelldatenbank

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

## Andere Paketmanager-Einträge

- Nix - srgn: normalized package name match | nixpkgs package indexes: pkgs/by-name/sr/srgn/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - srgn - 0.14.2-1: normalized package name match | Arch Linux sync databases: srgn from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A code surgeon for precise text and code transplantation | https://github.com/alexpovel/srgn
- MacPorts - srgn: normalized package name match | MacPorts ports tree: devel/srgn/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Verwandte Links

- [Source-control packages](https://pkg.so/de/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/de/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/de/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://pkg.so/de/brew/rust/) - Build dependency declared by Homebrew.
- [sd](https://pkg.so/de/brew/sd/) - Shares pkgdb curated category or tags: cli, developer-tools, regex, rust, text-processing.
- [comby](https://pkg.so/de/brew/comby/) - Shares pkgdb curated category or tags: cli, code-transformation, developer-tools, refactoring.
- [ripgrep](https://pkg.so/de/brew/ripgrep/) - Shares pkgdb curated category or tags: cli, developer-tools, regex, rust.
- [gnu-sed](https://pkg.so/de/brew/gnu-sed/) - Shares pkgdb curated category or tags: cli, developer-tools, regex, text-processing.
- [grex](https://pkg.so/de/brew/grex/) - Shares pkgdb curated category or tags: cli, developer-tools, regex, rust.
- [choose-rust](https://pkg.so/de/brew/choose-rust/) - Shares pkgdb curated category or tags: cli, developer-tools, rust, text-processing.
- [sad](https://pkg.so/de/brew/sad/) - Shares pkgdb curated category or tags: cli, developer-tools, regex, rust, text-processing.
- [darklua](https://pkg.so/de/brew/darklua/) - Shares pkgdb curated category or tags: cli, code-transformation, developer-tools.
- [chars](https://pkg.so/de/brew/chars/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, processing, rust.

## Combined YAML source

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


## Quellen

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