# 使用 Homebrew, apt, Nix 安装 cgvg

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

## 安装

```sh
sudo av install brew:cgvg
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cgvg
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install cgvg
```

  证据: Debian stable package indexes: cgvg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#vg
```

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

## 软件包事实

- **软件包键:** brew:cgvg
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cgvg>
- **版本:** 1.6.3
- **来源摘要:** Command-line source browsing tool
- **主页:** <https://uzix.org/cgvg.html>
- **上游文档:** <https://uzix.org/cgvg.html>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://uzix.org/cgvg/cgvg-1.6.3.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- cg (cli)
- vg (cli)
- cg (别名)
- vg (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.6.3
- 本地数据: OK
- 上游仓库: https://uzix.org/cgvg.html
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

CGVG is a small pair of Perl command-line source browsing tools, cg and vg, built around recursive code search and jumping from search results into vi-like editors. Its history is typical of tarball-era Unix developer utilities: a personal workflow tool, released with a static homepage, README, and ChangeLog, then kept useful through occasional maintenance.

### 项目历史

Joshua Uziel's README describes CGVG as a quick hack written mostly for his own source-code navigation needs, inspired by cscope but intentionally simpler and not language-specific. The official ChangeLog records an initial 1.0 release on June 8, 1999, followed by rapid 1999 iterations that renamed rg to cg, added vi/vim behavior, colors, manpages, a per-user ~/.cgvgrc file, and Perl-based searching.

### 采用历史

CGVG's adoption evidence is modest but real: the 2002 ChangeLog thanks Sergio Talens-Oliag for Debian packaging, and the supplied input records packages in Homebrew, Debian, Ubuntu, and Nix. That makes it a classic niche developer utility whose distribution survived through operating-system package collections rather than a large project ecosystem.

### 使用方式

The cg command searches source trees and stores numbered matches; vg then opens the selected match in an editor at the recorded file and line. The README positions it as a convenience layer over the find/grep/ctags/cscope family, with persistent logs under ~/.cgvg and per-user display/search defaults in ~/.cgvgrc.

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

Package nerds care about CGVG because it preserves a pre-GitHub style of Unix tool distribution: a tiny Perl utility, a hand-written homepage, an upstream tarball, and downstream packages that keep an old developer workflow installable. It is also an example of how Homebrew and distribution package sets carry niche tools long after their active release cadence slows.

### 时间线

- 1999: Initial 1.0 release of rg and vg.
- 1999: rg renamed to cg; ~/.cgvgrc, colors, manpages, and Perl-based search were added across 1.1 through 1.6.0.
- 2002: Version 1.6.2 thanked Debian packaging work and noted continued personal use despite cscope's open-source release.
- 2014: Version 1.6.3 modernized the scripts for newer Perl and added Python file support plus .git exclusion.

### Related projects

- The official README directly relates CGVG to cscope, ctags, etags, find, grep, vi, and vim. Its niche is lighter than cscope and broader than tag-only navigation because it jumps to arbitrary uses as well as definitions.

### 来源

- <https://uzix.org/cgvg.html>
- <https://uzix.org/cgvg/README>
- <https://uzix.org/cgvg/ChangeLog>


## 安全说明

narrow executable package without higher-risk signals.

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


## 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: ~/.cgvgrc
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cgvg
- **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

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

- Debian apt - cgvg - 1.6.3-1: normalized package name match | Debian stable package indexes: cgvg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line source browsing tool | https://uzix.org/cgvg.html
- Ubuntu apt - cgvg - 1.6.2-4: normalized package name match | Ubuntu 24.04 LTS package indexes: cgvg from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line source browsing tool | http://linux.ucla.edu/~uzi/cgvg/cgvg-1.6.1.tar.gz
- Nix - vg: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/vg/vg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cgrep](https://www.automicvault.com/zh-hans/pkg/brew/cgrep/) - Shares av.db curated category or tags: cli, code-search, developer-tools, grep, search.
- [jvgrep](https://www.automicvault.com/zh-hans/pkg/brew/jvgrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search, vim.
- [comby](https://www.automicvault.com/zh-hans/pkg/brew/comby/) - Shares av.db curated category or tags: cli, code-search, developer-tools, search.
- [fzy](https://www.automicvault.com/zh-hans/pkg/brew/fzy/) - Shares av.db curated category or tags: cli, developer-tools, search, vim.
- [hgrep](https://www.automicvault.com/zh-hans/pkg/brew/hgrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [igrep](https://www.automicvault.com/zh-hans/pkg/brew/igrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [ripgrep](https://www.automicvault.com/zh-hans/pkg/brew/ripgrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [sift](https://www.automicvault.com/zh-hans/pkg/brew/sift/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [codequery](https://www.automicvault.com/zh-hans/pkg/brew/codequery/) - Local package facts share a topical domain. Shared terms: browsing, cli, code, code-browsing, code-search.

## Combined YAML source

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


## 来源

- 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
