# 使用 Homebrew, MacPorts, Nix 安装 csvtk

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

## 安装

```sh
sudo av install brew:csvtk
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install csvtk
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install csvtk
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#csvtk
```

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

## 软件包事实

- **软件包键:** brew:csvtk
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/csvtk>
- **版本:** 0.37.0
- **来源摘要:** Cross-platform, efficient and practical CSV/TSV toolkit in Golang
- **主页:** <https://bioinf.shenwei.me/csvtk>
- **仓库:** <https://github.com/shenwei356/csvtk>
- **上游文档:** <https://bioinf.shenwei.me/csvtk>
- **许可证:** MIT
- **源码归档:** <https://github.com/shenwei356/csvtk/archive/refs/tags/v0.37.0.tar.gz>
- **最后更新:** 2026-07-25T14:20:52-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- csvtk (cli)
- csvtk (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.37.0
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/shenwei356/csvtk
- 检测到的最新版本: v0.37.0 (当前)
## 项目历史与用法

csvtk is a cross-platform Go toolkit for CSV and TSV processing, originally framed for bioinformatics and data-science table workflows. It emphasizes many subcommands, compressed input support, field selection by names, pipeline integration, and prebuilt binaries.

### 项目历史

The public release series begins with v0.1 in April 2016. The project grew from a compact CSV/TSV utility into a broad suite with commands for inspection, conversion, set operations, editing, transforms, sorting, joins, plots, and shell autocompletion.

### 采用历史

The official README documents release binaries, Pixi, conda-forge, Homebrew, Go install, and Arch AUR installation. Its conda and bioinformatics-facing documentation are significant because CSV/TSV table wrangling is common in reproducible analysis pipelines where package-manager availability matters.

### 使用方式

csvtk is commonly used as a pipeline component for rapid table inspection and transformation: selecting or excluding fields by name, converting CSV to TSV, JSON, Markdown, reStructuredText, or XLSX, fixing malformed records, joining tables, summarizing columns, and plotting simple charts.

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

csvtk is package-nerd-interesting because it packages a large table-toolbox surface into a single Go binary with no runtime dependencies, while still being distributed through language, OS, and scientific package channels. It overlaps with csvkit and xsv but leans into compressed files, bioinformatics documentation, and many built-in subcommands.

### 时间线

- 2016: v0.1 preview release.
- 2024: v0.31.0 improved sort and join performance and added mutate3.
- 2025: v0.34.0 added plot bar; v0.36.0 added shuf.
- 2026: v0.37.0 added LZ4 read/write support; v0.38.0 refined filtering and cut behavior.

### Related projects

- The README explicitly compares csvtk with csvkit and positions CSV/TSV handling beside bioinformatics FASTA/Q tooling, reflecting the author's wider ecosystem of command-line bioinformatics utilities.

### 来源

- <https://bioinf.shenwei.me/csvtk>
- <https://github.com/shenwei356/csvtk#readme>
- <https://github.com/shenwei356/csvtk/blob/master/CHANGELOG.md>
- <https://github.com/shenwei356/csvtk/releases>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- Nix - csvtk: normalized package name match | nixpkgs package indexes: pkgs/by-name/cs/csvtk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - csvtk: normalized package name match | MacPorts ports tree: textproc/csvtk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://pkg.so/zh-hans/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [csvkit](https://pkg.so/zh-hans/brew/csvkit/) - Shares pkgdb curated category or tags: cli, command-line, csv, data.
- [qsv](https://pkg.so/zh-hans/brew/qsv/) - Shares pkgdb curated category or tags: cli, csv, data.
- [csvlens](https://pkg.so/zh-hans/brew/csvlens/) - Shares pkgdb curated category or tags: cli, csv, data.
- [csvq](https://pkg.so/zh-hans/brew/csvq/) - Shares pkgdb curated category or tags: cli, csv, data.
- [miller](https://pkg.so/zh-hans/brew/miller/) - Shares pkgdb curated category or tags: cli, csv, data, tsv.
- [tidy-viewer](https://pkg.so/zh-hans/brew/tidy-viewer/) - Shares pkgdb curated category or tags: cli, csv, data, tsv.
- [qo](https://pkg.so/zh-hans/brew/qo/) - Shares pkgdb curated category or tags: cli, csv, data, tsv.
- [xan](https://pkg.so/zh-hans/brew/xan/) - Shares pkgdb curated category or tags: cli, csv, data.

## Combined YAML source

View the package source record on GitHub. [combined/csvtk.yml](https://github.com/mxcl/pkgdb/blob/main/combined/csvtk.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
