# cgrep を Homebrew, pacman でインストール

cgrep のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:cgrep
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install cgrep
```

  証拠: local Homebrew formula metadata

### Linux

- pacman (92%):

```sh
sudo pacman -S cgrep
```

  証拠: Arch Linux sync databases: cgrep from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## パッケージ情報

- **パッケージキー:** brew:cgrep
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/cgrep>
- **バージョン:** 9.2.3
- **ソース概要:** Context-aware grep for source code
- **ホームページ:** <https://awgn.github.io/cgrep/>
- **リポジトリ:** <https://github.com/awgn/cgrep>
- **上流ドキュメント:** <https://awgn.github.io/cgrep>
- **ライセンス:** GPL-2.0-or-later
- **ソースアーカイブ:** <https://hackage.haskell.org/package/cgrep-9.2.3/cgrep-9.2.3.tar.gz>
- **最終更新:** 2026-05-12T21:36:29Z
- **生成日時:** 2026-07-08T07:18:31+00:00

## 実行可能ファイル

- cgrep (cli)
- cgrep (エイリアス)

## 依存関係

- gmp

## ビルド依存関係

- cabal-install
- ghc
- pkgconf

## macOS 提供ライブラリ

- libffi

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 9.2.3
- マネージャ更新日: 2026-05-12
- ローカルデータ: OK
- 上流リポジトリ: https://awgn.github.io/cgrep/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

CGrep is a Haskell context-aware grep for source code that searches by code, comment, literal, token kind, file type, and semantic patterns.

### プロジェクトの歴史

The official documentation frames CGrep as an extension of traditional grep for source code, adding language-aware context filters and semantic matching.

### 採用の歴史

The project is distributed through Hackage and from source on GitHub. Official docs document cabal, stack, and source installation paths.

### 使われ方

CGrep is used to search source trees while limiting matches to code, comments, string literals, identifiers, native types, keywords, numbers, operators, file kinds, languages, or test/non-test code.

### パッケージ好きにとっての重要性

CGrep is interesting to package maintainers because it sits in the family of grep replacements but uses language parsing and Haskell packaging rather than plain byte or regex scanning alone.

### タイムライン

- v8.0.0: Changelog notes performance improvements and expanded language/configuration support.
- v9.2: Official docs describe faster token and semantic search, UTF-8 support, and semantic test filtering.
- v9.2.2: Official homepage documents this release line.

### Related projects

- The official README links CGrep to Hackage for package distribution and GitHub for source development.

### ソース

- <https://api.github.com/repos/awgn/cgrep>
- <https://github.com/awgn/cgrep>
- <https://awgn.github.io/cgrep/>
- <https://awgn.github.io/cgrep>
- <https://github.com/awgn/cgrep#readme>
- <https://formulae.brew.sh/api/formula/cgrep.json>
- <https://github.com/awgn/cgrep/blob/master/CHANGELOG.md>
- <https://github.com/awgn/cgrep/blob/master/README.md>


## セキュリティノート

cgrep に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。



## 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: ./.cgreprc, ~/.cgreprc, /etc/cgreprc
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cgrep
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** aerleon
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- pacman - cgrep - 8.1.0-129: normalized package name match | Arch Linux sync databases: cgrep from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A context-aware grep for source codes | https://awgn.github.io/cgrep/


## 関連リンク

- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/ja/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/ja/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cabal-install](https://www.automicvault.com/ja/pkg/brew/cabal-install/) - Build dependency declared by Homebrew.
- [ghc](https://www.automicvault.com/ja/pkg/brew/ghc/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/ja/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ack](https://www.automicvault.com/ja/pkg/brew/ack/) - Shares av.db curated category or tags: cli, code-search, developer-tools, grep, search.
- [cgvg](https://www.automicvault.com/ja/pkg/brew/cgvg/) - Shares av.db curated category or tags: cli, code-search, developer-tools, grep, search.
- [codequery](https://www.automicvault.com/ja/pkg/brew/codequery/) - Shares av.db curated category or tags: cli, code-search, developer-tools.
- [comby](https://www.automicvault.com/ja/pkg/brew/comby/) - Shares av.db curated category or tags: cli, code-search, developer-tools, search.
- [hgrep](https://www.automicvault.com/ja/pkg/brew/hgrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [idutils](https://www.automicvault.com/ja/pkg/brew/idutils/) - Shares av.db curated category or tags: cli, code-search, developer-tools.
- [igrep](https://www.automicvault.com/ja/pkg/brew/igrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [jvgrep](https://www.automicvault.com/ja/pkg/brew/jvgrep/) - Shares av.db curated category or tags: cli, developer-tools, grep, search.
- [fourmolu](https://www.automicvault.com/ja/pkg/brew/fourmolu/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, developer, developer-tools, gmp.
- [hindent](https://www.automicvault.com/ja/pkg/brew/hindent/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, developer, developer-tools, gmp.

## Combined YAML source

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