# 使用 Homebrew, apk 安装 t2sz

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

## 安装

```sh
sudo av install brew:t2sz
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install t2sz
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add t2sz
```

  证据: Alpine Linux edge package indexes: t2sz from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

## 软件包事实

- **软件包键:** brew:t2sz
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/t2sz>
- **版本:** 1.2.5
- **来源摘要:** Compress a file into a seekable zstd with per-file seeking for tar archives
- **主页:** <https://github.com/martinellimarco/t2sz>
- **仓库:** <https://github.com/martinellimarco/t2sz>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/martinellimarco/t2sz/archive/refs/tags/v1.2.5.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- t2sz (cli)
- t2sz (别名)

## 依赖

- zstd

## 构建依赖

- cmake

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.2.5
- 本地数据: OK
- 上游仓库: https://github.com/martinellimarco/t2sz
- 检测到的最新版本: v1.2.5 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

t2sz is a command-line compressor for seekable Zstandard output, with special handling for tar archives so individual tar members can be reached without decompressing the whole archive.

### 项目历史

The README expands the name as tar to seekable zstd: a tar archive is compressed with each file in an independent Zstandard frame. GitHub repository metadata records the public repository creation in December 2020.

### 采用历史

The README advertises package-manager paths for AUR, Homebrew, Snap, Debian-style release packages, and source builds. The Homebrew input also records Alpine and Homebrew packaging, which fits a niche utility used by archive and compression users rather than a broad desktop audience.

### 使用方式

t2sz runs in tar mode for .tar input by default and raw mode for other files, accepts stdin and stdout, exposes compression-level and block-size controls, and produces output readable by ordinary Zstandard tools. Seeking benefits require companion readers such as libzstd-seek, indexed_zstd, or ratarmount.

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

Package nerds care because t2sz sits at the intersection of tar, zstd, random access, and archival ergonomics: it preserves standard decompression while adding structure that downstream tooling can exploit.

### 时间线

- 2020: The public GitHub repository was created.
- 2026: GitHub releases show v1.2.x releases, with v1.2.5 published on 2026-03-08.
- 2026: The README documents Homebrew installation on Linux and macOS.

### Related projects

- The README names zstd, libzstd-seek, indexed_zstd, and ratarmount as related projects for compression and seekable reading.

### 来源

- <https://api.github.com/repos/martinellimarco/t2sz>
- <https://api.github.com/repos/martinellimarco/t2sz/releases>
- <https://github.com/martinellimarco/t2sz#readme>
- input.source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

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

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

- apk - t2sz - 1.1.2-r0: normalized package name match | Alpine Linux edge package indexes: t2sz from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | t2sz compress a file into a seekable zstd with special handling for tar archives. | https://github.com/martinellimarco/t2sz


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://pkg.so/zh-hans/archive-compression-tools/) - Matched archive or compression metadata.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [ouch](https://pkg.so/zh-hans/brew/ouch/) - Shares pkgdb curated category or tags: archives, cli, compression, system.
- [atool](https://pkg.so/zh-hans/brew/atool/) - Shares pkgdb curated category or tags: archives, cli, compression, system.
- [ratarmount](https://pkg.so/zh-hans/brew/ratarmount/) - Shares pkgdb curated category or tags: archives, cli, system, tar.
- [lz4](https://pkg.so/zh-hans/brew/lz4/) - Shares pkgdb curated category or tags: cli, compression, system.
- [lzip](https://pkg.so/zh-hans/brew/lzip/) - Shares pkgdb curated category or tags: cli, compression, system.
- [dwarfs](https://pkg.so/zh-hans/brew/dwarfs/) - Shares pkgdb curated category or tags: cli, compression, system.
- [lzfse](https://pkg.so/zh-hans/brew/lzfse/) - Shares pkgdb curated category or tags: cli, compression, system.
- [pbzip2](https://pkg.so/zh-hans/brew/pbzip2/) - Shares pkgdb curated category or tags: cli, compression, system.

## Combined YAML source

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