# Install codequery with Homebrew, apt

Code-understanding, code-browsing or code-search tool. Version 1.1.0 via Homebrew; verified 2026-07-12. Also installable with debian: sudo apt install codequery.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install codequery
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install codequery
```

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

## Package facts

- **Package key:** brew:codequery
- **Package manager:** Homebrew
- **Version:** 1.1.0
- **Source summary:** Code-understanding, code-browsing or code-search tool
- **Homepage:** <https://ruben2020.github.io/codequery/>
- **Repository:** <https://github.com/ruben2020/codequery>
- **Last updated:** 2026-07-12T09:27:08Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- codequery (alias)
- cqmakedb (alias)
- cqsearch (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.1.0
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- 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)


## Sources

- 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
