# Install t2sz with Homebrew, apk

Compress a file into a seekable zstd with per-file seeking for tar archives. Version 1.2.5 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install t2sz
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add t2sz
```

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

## Package facts

- **Package key:** brew:t2sz
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/t2sz>
- **Version:** 1.2.5
- **Source summary:** Compress a file into a seekable zstd with per-file seeking for tar archives
- **Homepage:** <https://github.com/martinellimarco/t2sz>
- **Repository:** <https://github.com/martinellimarco/t2sz>
- **Upstream docs:** <https://github.com/martinellimarco/t2sz#readme>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/martinellimarco/t2sz/archive/refs/tags/v1.2.5.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- t2sz (cli)
- t2sz (alias)

## Dependencies

- zstd

## Build dependencies

- cmake

## 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: 1.2.5
- Local data: ok
- Upstream repository: https://github.com/martinellimarco/t2sz
- Upstream latest detected: v1.2.5 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [atool](https://www.automicvault.com/pkg/brew/atool/) - Shares av.db curated category or tags: archives, cli, compression, system.
- [ouch](https://www.automicvault.com/pkg/brew/ouch/) - Shares av.db curated category or tags: archives, cli, compression, system.
- [ratarmount](https://www.automicvault.com/pkg/brew/ratarmount/) - Shares av.db curated category or tags: archives, cli, system, tar.
- [tarlz](https://www.automicvault.com/pkg/brew/tarlz/) - Shares av.db curated category or tags: cli, compression, system, tar.
- [cabextract](https://www.automicvault.com/pkg/brew/cabextract/) - Shares av.db curated category or tags: archives, cli, compression, system.
- [clzip](https://www.automicvault.com/pkg/brew/clzip/) - Shares av.db curated category or tags: cli, compression, system.
- [crabz](https://www.automicvault.com/pkg/brew/crabz/) - Shares av.db curated category or tags: cli, compression, system.
- [dwarfs](https://www.automicvault.com/pkg/brew/dwarfs/) - Shares av.db curated category or tags: cli, compression, system.
- [squashfs](https://www.automicvault.com/pkg/brew/squashfs/) - Local package facts share a topical domain. Shared terms: cli, compression, file, system, zstd.

## Combined YAML source

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