# Install zet with Homebrew, Nix

CLI utility to find the union, intersection, and set difference of files. Version 2.0.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:zet
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install zet
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#zet
```

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

## Package facts

- **Package key:** brew:zet
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/zet>
- **Version:** 2.0.1
- **Source summary:** CLI utility to find the union, intersection, and set difference of files
- **Homepage:** <https://github.com/yarrow/zet>
- **Repository:** <https://github.com/yarrow/zet>
- **Upstream docs:** <https://github.com/yarrow/zet#readme>
- **License:** Apache-2.0 OR MIT
- **Source archive:** <https://github.com/yarrow/zet/archive/refs/tags/v2.0.1.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- zet (cli)
- zet (alias)

## Build dependencies

- rust

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.0.1
- Local data: ok
- Upstream repository: https://github.com/yarrow/zet
- Upstream latest detected: v2.0.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

zet is a focused Rust command-line tool for treating files as sets of lines and computing union, intersection, difference, single-occurrence, and multiple-occurrence results while removing duplicates.

### Project history

The public trail is mostly the repository and a July 2021 Rust Users Forum announcement. The author positioned zet as a small Unix-style utility comparable to uniq and comm, but aimed at direct set operations over whole files rather than sorted-stream workflows.

### How it is used

Users run commands such as zet union, zet intersect, and zet diff over two or more input files. The README emphasizes that output preserves the order in which lines first appear, while the forum announcement notes details such as UTF-16 handling, BOM behavior, line-ending normalization, and memory use proportional to the largest argument plus output.

### Why package nerds care

zet is a nice package-catalog specimen because it fills a tiny gap left by classic POSIX text tools: set algebra over lines without forcing the user to pre-sort files or compose a longer shell pipeline.

### Timeline

- 2021-07-05: zet is announced on the Rust Users Forum as a CLI for set operations on files considered as sets of lines.

### Related projects

- uniq and comm are the traditional Unix comparison points named by the project README.
- setutils is a broader family of command-line set-operation utilities in a similar niche.

### Sources

- <https://github.com/yarrow/zet>
- <https://users.rust-lang.org/t/zet-take-the-union-intersection-etc-of-files/61952>


## 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:** zet
- **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

- Nix - zet: normalized package name match | nixpkgs package indexes: pkgs/by-name/ze/zet/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [bsdsfv](https://www.automicvault.com/pkg/brew/bsdsfv/) - Shares av.db curated category or tags: cli, file-utilities, system.
- [clean](https://www.automicvault.com/pkg/brew/clean/) - Shares av.db curated category or tags: cli, file-utilities, system.
- [bottom](https://www.automicvault.com/pkg/brew/bottom/) - Shares av.db curated category or tags: cli, rust, system.
- [brush](https://www.automicvault.com/pkg/brew/brush/) - Shares av.db curated category or tags: cli, rust, system.
- [comtrya](https://www.automicvault.com/pkg/brew/comtrya/) - Shares av.db curated category or tags: cli, rust, system.
- [crabz](https://www.automicvault.com/pkg/brew/crabz/) - Shares av.db curated category or tags: cli, rust, system.
- [cyme](https://www.automicvault.com/pkg/brew/cyme/) - Shares av.db curated category or tags: cli, rust, system.
- [czkawka](https://www.automicvault.com/pkg/brew/czkawka/) - Shares av.db curated category or tags: cli, rust, system.
- [split-file](https://www.automicvault.com/pkg/npm/split-file/) - Local package facts share a topical domain. Shared terms: cli, file, file-utilities, files, system.
- [sync-content](https://www.automicvault.com/pkg/npm/sync-content/) - Local package facts share a topical domain. Shared terms: cli, file, file-utilities, files, system.
- [trash-cli](https://www.automicvault.com/pkg/npm/trash-cli/) - Local package facts share a topical domain. Shared terms: cli, file, file-utilities, files, system.

## Combined YAML source

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