# Install ugrep with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Ultra fast grep with query UI, fuzzy search, archive search, and more. Version 7.8.2 via Homebrew; verified 2026-05-17.

## Install

```sh
sudo av install brew:ugrep
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ugrep
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ugrep
```

  Evidence: MacPorts ports tree: textproc/ugrep/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ugrep
```

  Evidence: Alpine Linux edge package indexes: ugrep from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ugrep
```

  Evidence: Debian stable package indexes: ugrep from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install ugrep
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#ugrep
```

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

- pacman (92%):

```sh
sudo pacman -S ugrep
```

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

- zypper (92%):

```sh
sudo zypper install ugrep
```

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

### Windows

- Chocolatey (92%):

```sh
choco install ugrep
```

  Evidence: Chocolatey community package catalog: ugrep from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='8.412399','intellijidea-edu'

- Scoop (92%):

```sh
scoop install main/ugrep
```

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

- winget (92%):

```sh
winget install --id Genivia.ugrep -e
```

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

## Package facts

- **Package key:** brew:ugrep
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ugrep>
- **Version:** 7.8.2
- **Source summary:** Ultra fast grep with query UI, fuzzy search, archive search, and more
- **Homepage:** <https://ugrep.com/>
- **Repository:** <https://github.com/Genivia/ugrep>
- **Upstream docs:** <https://github.com/Genivia/ugrep#readme>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/Genivia/ugrep/archive/refs/tags/v7.8.2.tar.gz>
- **Last updated:** 2026-05-17T21:07:16Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ug (cli)
- ug+ (cli)
- ugrep (cli)
- ugrep+ (cli)
- ugrep-indexer (cli)
- ug (alias)
- ug+ (alias)
- ugrep (alias)
- ugrep+ (alias)
- ugrep-indexer (alias)

## Dependencies

- brotli
- lz4
- pcre2
- xz
- zstd

## Uses from macOS

- bzip2

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 7.8.2
- Package-manager updated: 2026-05-17
- Local data: ok
- Upstream repository: https://github.com/Genivia/ugrep
- Upstream latest detected: v7.8.2 (current)
## Project history and usage

ugrep is Genivia's modern grep-family file pattern searcher, positioned as a fast GNU/BSD grep-compatible replacement with Unicode, archive search, fuzzy search, Boolean queries, structured output, and an interactive query TUI.

### Project history

The public ugrep repository was created in 2019. Its README presents the project as compatible with GNU and BSD grep while adding features usually associated with newer search tools, including recursive source search, gitignore-style globs, compressed and nested archive search, document filters, hexdumps, and multi-line Unicode-aware regular expressions.

The project developed a split command model: ug for interactive use with optional .ugrep configuration files, ugrep for batch use without a configuration file, and plus variants that enable filters for PDFs, documents, e-books, and image metadata. That division is important to packagers because it exposes both script-stable and user-preference-oriented entry points.

Release metadata shows an active release stream: early 2.x releases appeared in 2020, and the repository had reached the 7.x series by 2026, with v7.8.2 published in May 2026.

### Adoption history

The supplied package data records ugrep across a broad package-manager set, including Homebrew, MacPorts, Nix, Debian, Ubuntu, Fedora/dnf, Arch/pacman, Alpine/apk, openSUSE/zypper, Chocolatey, Scoop, and winget. That spread matches the README's positioning as both a Unix grep replacement and a cross-platform search utility.

Official project material links to dedicated benchmark, testing, indexing, and user-guide resources, which helped ugrep become more than a single binary: it has an associated performance story, validation suite, and optional indexer for slower or cold filesystems.

### How it is used

Package users typically install ugrep as a faster grep-compatible search command while keeping the option to symlink or alias ug to grep, egrep, or fgrep when compatibility is desired. The README distinguishes this from grep alternatives that intentionally drop parts of grep's option and regex behavior.

Common package-nerd uses include searching source trees with globs and ignore files, querying compressed tarballs and archives without unpacking them, opening the -Q TUI for exploratory searches, using fuzzy or Boolean matching for approximate discovery, and emitting JSON, XML, CSV, or custom formats for scripts.

ug's .ugrep and ~/.ugrep support lets interactive users save preferred defaults, while ugrep remains the safer command for scripts that should not depend on per-user configuration.

### Why package nerds care

ugrep matters in the package-manager niche because grep replacements are unusually sensitive to compatibility, speed, and defaults. It tries to be installable as a modern search tool without forcing users to give up classic grep semantics.

Its packaging footprint also makes it a good example of a CLI that has to behave consistently across Unix, macOS, and Windows package ecosystems while still integrating with local helper tools such as file-type filters, pagers, and archive libraries.

### Timeline

- 2019: Public GitHub repository created.
- 2020: 2.x releases published on GitHub.
- 2026: v7.8.2 release published.
- 2026: Repository metadata described ugrep 7.8 as a grep-compatible searcher with TUI, Boolean search, fuzzy search, archive search, document search, and structured output.

### Related projects

- The README compares ugrep with GNU grep, BSD grep, ripgrep, the Silver Searcher, and ack.
- Official related repositories include ugrep-indexer for file indexing, ugrep-benchmarks for performance results, and ugrep-testing for validation.

### Sources

- <https://api.github.com/repos/Genivia/ugrep>
- <https://api.github.com/repos/Genivia/ugrep/releases?per_page=5>
- <https://github.com/Genivia/ugrep>
- <https://raw.githubusercontent.com/Genivia/ugrep/master/README.md>
- <https://ugrep.com/>
- source_facts.package-manager


## Security Notes

No matching local secret-handling manifest was found for ugrep. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .ugrep, ~/.ugrep
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ugrep
- **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 - ugrep - 7.4.2+dfsg-1: normalized package name match | Debian stable package indexes: ugrep from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | faster grep with an interactive query UI | https://github.com/Genivia/ugrep/wiki
- Nix - ugrep: normalized package name match | nixpkgs package indexes: pkgs/by-name/ug/ugrep/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ugrep - 5.0.0+dfsg-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ugrep from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | faster grep with an interactive query UI | https://github.com/Genivia/ugrep/wiki
- apk - ugrep - 7.8.2-r0: normalized package name match | Alpine Linux edge package indexes: ugrep from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Ultra fast grep with interactive query UI and fuzzy search | https://ugrep.com/
- apk - ugrep-bash-completion - 7.8.2-r0: normalized package name match | Alpine Linux edge package indexes: ugrep-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for ugrep | https://ugrep.com/
- apk - ugrep-doc - 7.8.2-r0: normalized package name match | Alpine Linux edge package indexes: ugrep-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Ultra fast grep with interactive query UI and fuzzy search (documentation) | https://ugrep.com/
- apk - ugrep-fish-completion - 7.8.2-r0: normalized package name match | Alpine Linux edge package indexes: ugrep-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for ugrep | https://ugrep.com/
- apk - ugrep-zsh-completion - 7.8.2-r0: normalized package name match | Alpine Linux edge package indexes: ugrep-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for ugrep | https://ugrep.com/
- dnf - ugrep - 7.8.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: ugrep from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A more powerful, ultra fast, user-friendly, compatible grep | https://github.com/Genivia/ugrep
- pacman - ugrep - 7.8.2-1: normalized package name match | Arch Linux sync databases: ugrep from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | ultra fast grep with interactive TUI, fuzzy search, boolean queries, hexdumps and more | https://github.com/Genivia/ugrep
- zypper - ugrep - 7.8.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ugrep from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Universal grep: a feature-rich grep implementation with focus on speed | https://github.com/Genivia/ugrep
- zypper - ugrep-bash-completion - 7.8.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ugrep-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Bash completion for ugrep | https://github.com/Genivia/ugrep
- zypper - ugrep-fish-completion - 7.8.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ugrep-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Fish completion for ugrep | https://github.com/Genivia/ugrep
- zypper - ugrep-zsh-completion - 7.8.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ugrep-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Zsh completion for ugrep | https://github.com/Genivia/ugrep
- MacPorts - ugrep: normalized package name match | MacPorts ports tree: textproc/ugrep/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - ugrep: normalized package name match | Chocolatey community package catalog: ugrep from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='8.412399','intellijidea-edu'


## Related links

- [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.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [brotli](https://www.automicvault.com/pkg/brew/brotli/) - Runtime dependency declared by Homebrew.
- [lz4](https://www.automicvault.com/pkg/brew/lz4/) - Runtime dependency declared by Homebrew.
- [pcre2](https://www.automicvault.com/pkg/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [xz](https://www.automicvault.com/pkg/brew/xz/) - Runtime dependency declared by Homebrew.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [grep](https://www.automicvault.com/pkg/brew/grep/) - Shares av.db curated category or tags: cli, developer-tools, search, text-processing.
- [hgrep](https://www.automicvault.com/pkg/brew/hgrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [igrep](https://www.automicvault.com/pkg/brew/igrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [jvgrep](https://www.automicvault.com/pkg/brew/jvgrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [ripgrep](https://www.automicvault.com/pkg/brew/ripgrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [sift](https://www.automicvault.com/pkg/brew/sift/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [vgrep](https://www.automicvault.com/pkg/brew/vgrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [cgrep](https://www.automicvault.com/pkg/brew/cgrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [rpl](https://www.automicvault.com/pkg/brew/rpl/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, pcre2, processing.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
