# 使用 Homebrew, MacPorts, Nix, pacman 安装 hck

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

## 安装

```sh
sudo av install brew:hck
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hck
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hck
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#hck
```

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

- pacman (92%):

```sh
sudo pacman -S hck
```

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

## 软件包事实

- **软件包键:** brew:hck
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/hck>
- **版本:** 0.11.6
- **来源摘要:** Sharp cut(1) clone
- **主页:** <https://github.com/sstadick/hck>
- **仓库:** <https://github.com/sstadick/hck>
- **许可证:** MIT OR Unlicense
- **源码归档:** <https://github.com/sstadick/hck/archive/refs/tags/v0.11.6.tar.gz>
- **最后更新:** 2026-06-15T16:29:25Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- hck (cli)
- hck (别名)

## 构建依赖

- cmake
- rust

## 安装行为

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

## 版本和新鲜度

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

hck is a Rust command-line text-processing tool described by its author as a sharp cut(1) clone. It keeps the familiar field-selection niche of cut while adding regex delimiters, output-column reordering, header selection, decompression support, and speed-focused packaging.

### 项目历史

The public GitHub repository was created in June 2021. The README explains the name as a shortening of 'hack', a rougher form of cut, and describes the tool as a near drop-in replacement for cut that fills a gap between cut and awk.

The project deliberately does not try to become a complete CSV/TSV parser like xsv. Its stated non-goal is respecting full quoting rules; it remains a line-by-line splitter in the spirit of cut.

### 采用历史

The README documents installation through Homebrew/Linuxbrew, conda-forge, MacPorts, Debian packages from GitHub releases, Cargo, and optimized release binaries. Input package facts also list Homebrew, MacPorts, Nix, and pacman packaging.

The README includes a Repology packaging-status badge, which signals that the maintainer expects hck to be tracked across multiple distribution ecosystems.

### 使用方式

Typical use is to pipe text or process files with field selections such as hck -f2,1,3-, choose regex delimiters for whitespace or unusual separators, select columns by header literal or regex, and optionally process compressed inputs when a local decompressor exists.

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

hck is the kind of package CLI enthusiasts like: a small Rust replacement for a standard Unix primitive that adds just enough practical ergonomics for messy data exploration while staying scriptable. Its value is not replacing awk or CSV parsers, but reducing common one-off pipelines.

### 时间线

- 2021: Public GitHub repository created.
- 2020s: README documents packaging through Homebrew/Linuxbrew, conda-forge, MacPorts, Debian artifacts, Cargo, and release binaries.
- 2020s: Input package facts show additional Nix and pacman packaging.

### Related projects

- cut, awk, xsv, tsv-utils, choose, ripgrep-style decompression behavior, and gzp compression are related tools or inspirations named by the README.

### 来源

- <https://api.github.com/repos/sstadick/hck>
- <https://github.com/sstadick/hck>
- <https://raw.githubusercontent.com/sstadick/hck/master/README.md>


## 安全说明

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:** hck
- **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 - hck: normalized package name match | nixpkgs package indexes: pkgs/by-name/hc/hck/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - hck - 0.11.6-1: normalized package name match | Arch Linux sync databases: hck from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A drop in replacement for cut that can use a regex delimiter instead of a fixed string | https://github.com/sstadick/hck
- MacPorts - hck: normalized package name match | MacPorts ports tree: textproc/hck/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [choose-rust](https://pkg.so/zh-hans/brew/choose-rust/) - Shares pkgdb curated category or tags: cli, cut, developer-tools, rust, text-processing.
- [tuc](https://pkg.so/zh-hans/brew/tuc/) - Shares pkgdb curated category or tags: cli, cut, developer-tools, rust, text-processing.
- [sd](https://pkg.so/zh-hans/brew/sd/) - Shares pkgdb curated category or tags: cli, developer-tools, rust, text-processing.
- [decasify](https://pkg.so/zh-hans/brew/decasify/) - Shares pkgdb curated category or tags: cli, developer-tools, rust, text-processing.
- [counts](https://pkg.so/zh-hans/brew/counts/) - Shares pkgdb curated category or tags: cli, developer-tools, rust, text-processing.
- [chars](https://pkg.so/zh-hans/brew/chars/) - Shares pkgdb curated category or tags: cli, developer-tools, rust, text-processing.
- [srgn](https://pkg.so/zh-hans/brew/srgn/) - Shares pkgdb curated category or tags: cli, developer-tools, rust, text-processing.
- [uv](https://pkg.so/zh-hans/brew/uv/) - Shares pkgdb curated category or tags: cli, developer-tools, rust.

## Combined YAML source

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