# 使用 Homebrew, dnf, MacPorts, Nix, zypper 安装 vgrep

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

## 安装

```sh
sudo av install brew:vgrep
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install vgrep
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install vgrep
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install vgrep
```

  证据: Fedora Rawhide package metadata: vgrep 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#vgrep
```

  证据: nixpkgs package indexes: pkgs/by-name/vg/vgrep/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install vgrep
```

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

## 软件包事实

- **软件包键:** brew:vgrep
- **软件包管理器:** Homebrew
- **版本:** 2.8.0
- **来源摘要:** User-friendly pager for grep
- **主页:** <https://github.com/vrothberg/vgrep>
- **仓库:** <https://github.com/vrothberg/vgrep>
- **最后更新:** 2026-07-26T00:30:32+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- vgrep (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

vgrep is a user-friendly pager and interactive front end for grep-like search tools. It indexes matches from grep, git-grep, ripgrep, and similar commands so users can browse results and jump directly into a chosen location in an editor.

### 项目历史

The vrothberg/vgrep repository was created in March 2015. The README describes vgrep as inspired by the older cgvg scripts, but extended with operations such as file and directory statistics and context-line display around matches.

vgrep matured as a Go CLI for a familiar terminal workflow: search first, then navigate results. GitHub releases show continued maintenance through v2.x releases, including v2.8.0 in May 2024 with fixes for gracefully handling errors from grep-like tools.

### 采用历史

vgrep's adoption is modest but real across Unix-like package ecosystems. It appears in Homebrew, Fedora/DNF, MacPorts, Nix, and openSUSE/Zypper metadata, and secondary package indexes describe it consistently as a grep pager or front end.

The tool's appeal is strongest among developers who already use grep, git-grep, or ripgrep but want persistent indexed results and editor integration without switching to a full-screen IDE search interface.

### 使用方式

In normal use, vgrep runs a grep-style search, displays numbered results, and lets the user open selected matches in an editor such as Vim or Emacs. It also supports interactive browsing, context display, and cached result selection so users can revisit indexed matches without rerunning a search.

Because it works with existing search tools rather than replacing pattern matching itself, vgrep fits into shell pipelines and source-code search habits. It is a pager and navigator around grep-family output, not a new regular-expression engine.

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

vgrep is a classic small-package utility: one executable that improves a decades-old command-line primitive by adding navigation state. Its package significance comes from making grep output act more like a lightweight code-search UI while staying editor- and shell-friendly.

### 时间线

- 2015-03: vrothberg/vgrep was created on GitHub.
- 2022-08: GitHub releases show v2.6.1.
- 2023-10: GitHub releases show v2.7.0.
- 2024-05: v2.8.0 was released with improved handling of grep errors.

### Related projects

- vgrep is related to grep, git-grep, ripgrep, fzf-style terminal selection workflows, Vim, Emacs, and the older cgvg scripts that inspired its indexed grep-result navigation.

### 来源

- <https://api.github.com/repos/vrothberg/vgrep>
- <https://api.github.com/repos/vrothberg/vgrep/releases?per_page=3>
- <https://formulae.brew.sh/formula/vgrep>
- <https://github.com/vrothberg/vgrep>
- <https://github.com/vrothberg/vgrep/releases>
- <https://linuxcommandlibrary.com/man/vgrep>
- <https://www.freshports.org/textproc/vgrep/>
- <https://www.mankier.com/package/vgrep>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - vgrep: normalized package name match | nixpkgs package indexes: pkgs/by-name/vg/vgrep/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - vgrep - 2.8.0-10.fc45: normalized package name match | Fedora Rawhide package metadata: vgrep from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | User-friendly pager for grep | https://github.com/vrothberg/vgrep
- zypper - vgrep - 2.8.0-1.9: normalized package name match | openSUSE Tumbleweed package metadata: vgrep from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Frontend for git-grep and grep | https://github.com/vrothberg/vgrep
- MacPorts - vgrep: normalized package name match | MacPorts ports tree: textproc/vgrep/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/vgrep.yml](https://github.com/mxcl/pkgdb/blob/main/combined/vgrep.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
