# 使用 Homebrew, MacPorts, Nix, pacman 安装 dsq

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

## 安装

```sh
sudo av install brew:dsq
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dsq
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dsq
```

  证据: MacPorts ports tree: textproc/dsq/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dsq
```

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

- pacman (92%):

```sh
sudo pacman -S dsq
```

  证据: Arch Linux sync databases: dsq from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:dsq
- **软件包管理器:** Homebrew
- **版本:** 0.23.0
- **来源摘要:** CLI tool for running SQL queries against JSON, CSV, Excel, Parquet, and more
- **主页:** <https://github.com/multiprocessio/dsq>
- **仓库:** <https://github.com/multiprocessio/dsq>
- **最后更新:** 2026-07-29T17:01:33+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dsq (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

dsq is a Go command-line tool for running SQL queries over data files such as JSON, CSV, Excel, Parquet, TSV, and logs. Upstream now labels it not under active development and points users toward DuckDB, ClickHouse-local, and GlareDB-style analytics foundations.

### 项目历史

The README presents dsq as a CLI companion to DataStation, the Multiprocess Labs GUI for querying data files. Its implementation approach is SQLite-centered, which made it convenient and portable for mixed local files but eventually less attractive than columnar/vectorized analytics engines.

The release history moved quickly through 2022: 0.15 added query-file and cache flags, 0.16 added an interactive REPL, 0.22 added logfmt support, and v0.23.0 fixed nested JSON handling. The README later opened with a not-under-active-development notice and recommended DuckDB, ClickHouse-local, and GlareDB instead.

### 采用历史

dsq's adoption came from the CLI data-wrangling crowd: people who wanted `jq`-adjacent convenience but preferred SQL over local structured files. It shipped Homebrew installation instructions in the README and has also appeared in MacPorts, Nix, and Arch packages.

Homebrew analytics showed 159 installs over the preceding 365 days during this batch, consistent with a useful but superseded utility.

### 使用方式

Typical use is `dsq file.json 'SELECT ... FROM {}'`, piping data with `-s`, joining multiple files as numbered tables, pretty-printing results, dumping inferred schema, caching imported data, or using the interactive REPL added in the 0.16 line.

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

dsq is package-nerd significant because it marks a short transitional moment in local data tools: single-binary SQL over arbitrary files before DuckDB became the obvious answer for many of the same workflows. Its own README now documents that transition by pointing users away from dsq toward stronger analytics engines.

### 时间线

- 2022-04-20: 0.15.0 added query-file and cache support.
- 2022-04-26: 0.16.0 added a basic interactive REPL.
- 2022-08-26: v0.22.0 added logfmt support.
- 2022-10-20: v0.23.0 fixed nested JSON query handling and is the Homebrew stable version recorded for this batch.
- Later README state: Upstream marked the project not under active development and recommended DuckDB, ClickHouse-local, and GlareDB.

### Related projects

- DataStation is the GUI companion project named by the README.
- DuckDB, ClickHouse-local, and GlareDB are the README's recommended successors or alternatives.
- SQLite is the underlying style of engine the README contrasts with newer columnar/vectorized systems.
- jq is a common neighboring CLI in local JSON/data-wrangling workflows.

### 来源

- <https://github.com/multiprocessio/dsq#readme>
- <https://github.com/multiprocessio/dsq/releases/tag/0.15.0>
- <https://github.com/multiprocessio/dsq/releases/tag/0.16.0>
- <https://github.com/multiprocessio/dsq/releases/tag/v0.22.0>
- <https://github.com/multiprocessio/dsq/releases/tag/v0.23.0>
- <https://formulae.brew.sh/formula/dsq>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Nix - dsq: normalized package name match | nixpkgs package indexes: pkgs/by-name/ds/dsq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - dsq - 0.23.0-3: normalized package name match | Arch Linux sync databases: dsq from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | CLI tool for running SQL queries against JSON/CSV/Excel/Parquet and more | https://github.com/multiprocessio/dsq
- MacPorts - dsq: normalized package name match | MacPorts ports tree: textproc/dsq/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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