# 使用 Homebrew, apk, Nix 安装 csvq

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

## 安装

```sh
sudo av install brew:csvq
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install csvq
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add csvq
```

  证据: Alpine Linux edge package indexes: csvq from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#csvq
```

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

## 软件包事实

- **软件包键:** brew:csvq
- **软件包管理器:** Homebrew
- **版本:** 1.18.1
- **来源摘要:** SQL-like query language for csv
- **主页:** <https://mithrandie.github.io/csvq>
- **仓库:** <https://github.com/mithrandie/csvq>
- **最后更新:** 2026-07-25T14:20:52-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- csvq (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

csvq is a Go command-line tool that brings a SQL-like query language to CSV and related text formats. It supports reading, updating, deleting, transactions, procedures, an interactive shell, and exports to formats such as JSON and text tables.

### 项目历史

The official changelog marks version 1.0.0, released on September 19, 2017, as the first general release. Subsequent releases expanded the language and format surface, including analytic-function behavior, Go modules, JSON support, fixed-length input, JSON Lines output, and later Go 1.18 dependency updates.

### 采用历史

The upstream README documents installation by release archive, Go install, Ubuntu PPA, Arch AUR packages, and Homebrew. That spread reflects csvq's role as a portable single-binary data tool rather than a library that must be embedded into an application.

### 使用方式

csvq is aimed at one-time queries and routine processing over data sizes that fit in memory and are comparable to spreadsheet workloads. The README explicitly warns that it is not optimized for very large data because query execution keeps data in memory and does not use indexes or query planning.

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

For package users, csvq occupies the SQL-on-flat-files niche: more expressive than simple cut/filter tools, lighter to install than a database, and useful in scripts when CSV, TSV, fixed-width, JSON, or JSON Lines files need ad hoc querying.

### 时间线

- 2017: Version 1.0.0 first general release.
- 2018: Version 1.3.0 enhanced JSON support; version 1.5.0 added fixed-length format support.
- 2022: Version 1.16.0 added JSON Lines and BOX export formats.
- 2023: Version 1.18.x updated dependencies and required Go 1.18 or later.

### Related projects

- The README links csvq-driver for executing csvq statements in Go and a csvq Emacs extension, showing a small ecosystem around the command language.

### 来源

- <https://mithrandie.github.io/csvq>
- <https://github.com/mithrandie/csvq#readme>
- <https://github.com/mithrandie/csvq/blob/master/CHANGELOG.md>
- <https://github.com/mithrandie/csvq/releases>


## 安全说明

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

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

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

- Nix - csvq: normalized package name match | nixpkgs package indexes: pkgs/by-name/cs/csvq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - csvq - 1.18.1-r28: normalized package name match | Alpine Linux edge package indexes: csvq from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SQL-like query language for csv format | https://github.com/mithrandie/csvq


## Combined YAML source

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