# 使用 Homebrew, Nix 安装 zet

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zet
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:zet
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/zet>
- **版本:** 2.0.1
- **来源摘要:** CLI utility to find the union, intersection, and set difference of files
- **主页:** <https://github.com/yarrow/zet>
- **仓库:** <https://github.com/yarrow/zet>
- **上游文档:** <https://github.com/yarrow/zet#readme>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://github.com/yarrow/zet/archive/refs/tags/v2.0.1.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- zet (cli)
- zet (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

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

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.

### 项目历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

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

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

- 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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [bsdsfv](https://www.automicvault.com/zh-hans/pkg/brew/bsdsfv/) - Shares av.db curated category or tags: cli, file-utilities, system.
- [clean](https://www.automicvault.com/zh-hans/pkg/brew/clean/) - Shares av.db curated category or tags: cli, file-utilities, system.
- [bottom](https://www.automicvault.com/zh-hans/pkg/brew/bottom/) - Shares av.db curated category or tags: cli, rust, system.
- [brush](https://www.automicvault.com/zh-hans/pkg/brew/brush/) - Shares av.db curated category or tags: cli, rust, system.
- [comtrya](https://www.automicvault.com/zh-hans/pkg/brew/comtrya/) - Shares av.db curated category or tags: cli, rust, system.
- [crabz](https://www.automicvault.com/zh-hans/pkg/brew/crabz/) - Shares av.db curated category or tags: cli, rust, system.
- [cyme](https://www.automicvault.com/zh-hans/pkg/brew/cyme/) - Shares av.db curated category or tags: cli, rust, system.
- [czkawka](https://www.automicvault.com/zh-hans/pkg/brew/czkawka/) - Shares av.db curated category or tags: cli, rust, system.
- [split-file](https://www.automicvault.com/zh-hans/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/zh-hans/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/zh-hans/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)


## 来源

- 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
