# 使用 Homebrew, MacPorts, Nix, pacman, scoop, winget 安装 xan

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

## 安装

```sh
sudo av install brew:xan
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xan
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xan
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#xan
```

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

- pacman (92%):

```sh
sudo pacman -S xan
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/xan
```

  证据: Scoop official bucket manifest trees: bucket/xan.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id medialab.xan -e
```

  证据: Windows Package Manager source index: medialab.xan from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:xan
- **软件包管理器:** Homebrew
- **版本:** 0.60.0
- **来源摘要:** CSV CLI magician written in Rust
- **主页:** <https://github.com/medialab/xan>
- **仓库:** <https://github.com/medialab/xan>
- **最后更新:** 2026-07-10T14:02:28Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- xan (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

xan is a Rust command-line toolkit for processing CSV and CSV-adjacent tabular data directly from the shell. Its README calls it the CSV magician and emphasizes speed, low memory use, large-file handling, SIMD CSV parsing, and multithreaded operations.

Compared with older single-purpose CSV tools, xan aims to be a richer terminal data workbench: previewing, filtering, slicing, aggregating, sorting, joining, plotting, scraping, converting formats, and using a CSV-oriented expression language.

### 项目历史

The project repository was created in 2018, but the public crate history for xan begins with version 0.1.0 on February 7, 2024. The README says xan began as a fork of BurntSushi's xsv and has since been nearly entirely rewritten for Sciences Po medialab use cases rooted in web data collection and social-science analysis.

The tool's development identity is tied to practical research data work: CSV remains a common interchange format among spreadsheets, statistics tools, scripting languages, web archives, and data pipelines, and xan extends beyond plain CSV into formats such as CDX, VCF, GTF, SAM, BED, JSON, Excel, and NumPy arrays.

### 采用历史

xan is newer than classic CSV tools, but it has become visible in terminal-data circles because it combines xsv-like speed with a broader command set and interactive exploration features. By July 2026 the GitHub repository had roughly four thousand stars, and crates.io listed tens of thousands of downloads.

Its adoption niche is strongest among users who want shell-native data munging without starting Python, R, pandas, a notebook, or a database engine. That includes journalists, researchers, civic-tech users, data engineers doing quick inspections, and developers manipulating large delimited files in pipelines.

### 使用方式

Typical xan sessions chain commands to inspect headers, preview rows, filter with expressions, compute frequencies, aggregate columns, join files, sort large CSVs, and render quick terminal visualizations. The README highlights its own expression language for cases too complex for the simplest commands but faster and more focused than embedding a general dynamic language.

The package is useful as a one-binary data knife: users can keep transformations in shell history, run them repeatedly in scripts, and work with gigabyte-scale CSVs using streaming, SIMD parsing, and parallelism where commands allow it.

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

xan sits in the lineage of modern Rust CLI rewrites of Unix data tools: fast, single-purpose at the binary level, but broad enough to replace many tiny CSV scripts. Its xsv ancestry matters, but the medialab rewrite and CSV-adjacent commands give it a distinct research-data personality.

### 时间线

- 2018: medialab/xan repository is created.
- 2024-02-07: xan 0.1.0 is published on crates.io.
- 2025: Release cadence accelerates with frequent 0.x releases and expanded command coverage.
- 2026-06-17: crates.io lists xan 0.59.0 as the latest version at the time researched.

### Related projects

- xsv is the Rust CSV toolkit from which xan originally forked.
- csvkit, Miller, DuckDB, pandas, and command-line SQL tools overlap with parts of xan's CSV manipulation niche.
- simd-csv is part of the parser story highlighted by xan's README and project blog.

### 来源

- <https://crates.io/api/v1/crates/xan>
- <https://github.com/medialab/xan>
- <https://github.com/medialab/xan/blob/master/docs/blog/csv_base_jumping.md>
- <https://github.com/medialab/xan/blob/master/docs/cookbook/dataviz.md>
- <https://github.com/medialab/xan/releases>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - xan: normalized package name match | nixpkgs package indexes: pkgs/by-name/xa/xan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - xan - 0.60.0-1: normalized package name match | Arch Linux sync databases: xan from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The CSV magician | https://github.com/medialab/xan
- MacPorts - xan: normalized package name match | MacPorts ports tree: textproc/xan/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/xan: normalized package name match | Scoop official bucket manifest trees: bucket/xan.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- winget - medialab.xan: normalized package name match | Windows Package Manager source index: medialab.xan from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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