# cgvg を Homebrew, apt, Nix でインストール

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
- **バージョン:** 1.6.3
- **ソース概要:** Command-line source browsing tool
- **ホームページ:** <https://uzix.org/cgvg.html>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- cg (エイリアス)
- vg (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.6.3
## プロジェクトの歴史と使われ方

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
## 他のパッケージマネージャ記録

- 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


## Combined YAML source

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