# Install csvtk with Homebrew, MacPorts, Nix

Cross-platform, efficient and practical CSV/TSV toolkit in Golang. Version 0.37.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install csvtk
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install csvtk
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:csvtk
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/csvtk>
- **Version:** 0.37.0
- **Source summary:** Cross-platform, efficient and practical CSV/TSV toolkit in Golang
- **Homepage:** <https://bioinf.shenwei.me/csvtk>
- **Repository:** <https://github.com/shenwei356/csvtk>
- **Upstream docs:** <https://bioinf.shenwei.me/csvtk>
- **License:** MIT
- **Source archive:** <https://github.com/shenwei356/csvtk/archive/refs/tags/v0.37.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- csvtk (cli)
- csvtk (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.37.0
- Local data: ok
- Upstream repository: https://github.com/shenwei356/csvtk
- Upstream latest detected: v0.37.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

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

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

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

## Combined YAML source

View the package source record on GitHub. [combined/csvtk.yml](https://github.com/automic-vault/db/blob/main/combined/csvtk.yml)


## Sources

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