# 使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 ugrep

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ugrep
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ugrep
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

- Nix (92%):

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

  证据: 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
```

  证据: 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
```

  证据: openSUSE Tumbleweed package metadata: ugrep from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install ugrep
```

  证据: Chocolatey community package catalog: ugrep from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.151999','cports'

- Scoop (92%):

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

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:ugrep
- **软件包管理器:** Homebrew
- **版本:** 7.8.3
- **来源摘要:** Ultra fast grep with query UI, fuzzy search, archive search, and more
- **主页:** <https://ugrep.com/>
- **仓库:** <https://github.com/Genivia/ugrep>
- **最后更新:** 2026-07-30T16:29:54Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ug (别名)
- ug+ (别名)
- ugrep (别名)
- ugrep+ (别名)
- ugrep-indexer (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 7.8.3
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

没有找到 ugrep 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 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
## 其他软件包管理器记录

- 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.3-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.3-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.3-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.3-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.3-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-2.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A more powerful, ultra fast, user-friendly, compatible grep | https://github.com/Genivia/ugrep
- pacman - ugrep - 7.8.3-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.3-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ugrep from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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.3-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ugrep-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash completion for ugrep | https://github.com/Genivia/ugrep
- zypper - ugrep-fish-completion - 7.8.3-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ugrep-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish completion for ugrep | https://github.com/Genivia/ugrep
- zypper - ugrep-zsh-completion - 7.8.3-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ugrep-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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='9.151999','cports'


## Combined YAML source

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


## 来源

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