# 使用 Homebrew, apt 安装 codequery

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

## 安装

```sh
sudo av install brew:codequery
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install codequery
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install codequery
```

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

## 软件包事实

- **软件包键:** brew:codequery
- **软件包管理器:** Homebrew
- **版本:** 1.1.0
- **来源摘要:** Code-understanding, code-browsing or code-search tool
- **主页:** <https://ruben2020.github.io/codequery/>
- **仓库:** <https://github.com/ruben2020/codequery>
- **最后更新:** 2026-07-12T09:27:08Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- codequery (别名)
- cqmakedb (别名)
- cqsearch (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

CodeQuery is a source-code indexing, browsing, and search tool that combines cscope-style call information with ctags-style symbol information and stores the result in a SQLite-backed database.

### 项目历史

The GitHub repository dates to 2013 and the README presents CodeQuery as a cross-platform GUI plus command-line database tooling. It was built around existing source-navigation traditions: cscope, Exuberant ctags, Universal Ctags, pycscope, and starscope.

### 采用历史

CodeQuery spread through classic package-manager channels rather than a SaaS ecosystem: the README documents Debian and Ubuntu installation through apt, macOS installation through Homebrew, and Windows binaries through SourceForge.

### 使用方式

A typical workflow uses cscope and ctags data, processes it with cqmakedb into a CodeQuery database, then browses or queries it with the codequery GUI or searches with cqsearch. The tool supports symbols, call relationships, inheritance relationships, file lookup, grep-style search, and graph exports.

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

CodeQuery matters to package nerds as a packaged survivor of the pre-language-server source-navigation era. It connects long-lived Unix indexing tools, SQLite, GUI browsing, and distro packaging in a way that makes large legacy codebases searchable without adopting a full IDE.

### 时间线

- 2013: GitHub repository created.
- 2010s: README documents Debian, Ubuntu, Homebrew, and SourceForge distribution paths.
- 2025: Repository remains active according to GitHub metadata gathered during research.
- 2026: Homebrew formula distributes CodeQuery 1.0.1.

### Related projects

- Related projects include cscope, Exuberant ctags, Universal Ctags, pycscope, starscope, vim-codequery, codequery4vscode, GNU cflow, CodeViz, and tags2uml.

### 来源

- <https://github.com/ruben2020/codequery>
- <https://ruben2020.github.io/codequery>
- <https://formulae.brew.sh/api/formula/codequery.json>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - codequery - 1.0.0+dfsg-1: normalized package name match | Debian stable package indexes: codequery from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | code-understanding, code-browsing or code-search tool | https://github.com/ruben2020/codequery
- Ubuntu apt - codequery - 0.27.0+dfsg-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: codequery from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | code-understanding, code-browsing or code-search tool | https://github.com/ruben2020/codequery


## Combined YAML source

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