# 使用 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
- **版本:** 0.37.0
- **来源摘要:** Cross-platform, efficient and practical CSV/TSV toolkit in Golang
- **主页:** <https://bioinf.shenwei.me/csvtk>
- **仓库:** <https://github.com/shenwei356/csvtk>
- **最后更新:** 2026-07-25T14:20:52-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- csvtk (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
