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

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

## 安装

```sh
sudo av install brew:tarsnap
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tarsnap
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tarsnap
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#tarsnap
```

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

- pacman (92%):

```sh
sudo pacman -S tarsnap
```

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

## 软件包事实

- **软件包键:** brew:tarsnap
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tarsnap>
- **版本:** 1.0.41
- **来源摘要:** Online backups for the truly paranoid
- **主页:** <https://www.tarsnap.com/>
- **仓库:** <https://github.com/Tarsnap/tarsnap>
- **上游文档:** <https://www.tarsnap.com/>
- **许可证:** 0BSD
- **源码归档:** <https://www.tarsnap.com/download/tarsnap-autoconf-1.0.41.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tarsnap (cli)
- tarsnap-keygen (cli)
- tarsnap-keymgmt (cli)
- tarsnap-keyregen (cli)
- tarsnap-recrypt (cli)
- tarsnap (别名)
- tarsnap-keygen (别名)
- tarsnap-keymgmt (别名)
- tarsnap-keyregen (别名)
- tarsnap-recrypt (别名)

## 依赖

- openssl@3

## macOS 提供的库

- bzip2

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0.41
- 本地数据: OK
- 上游仓库: https://www.tarsnap.com/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Tarsnap is a secure, efficient command-line online backup service for Unix-like systems, centered on client-side keys, deduplication, and pay-for-actual-usage storage. It is famous among command-line and security-minded users because its normal interface is a tar-like CLI rather than a consumer backup app.

### 项目历史

The official site describes Tarsnap as a command-line backup service for Linux, the BSDs, macOS, and other Unix-like systems. The official client repository is for developers who want to watch changes, investigate bugs, or test unreleased features, while the website recommends official release downloads for normal use.

### 采用历史

Official news shows active public releases and service milestones from at least 2009, including the move from beta-era web pages to the main website in September 2009, Tarsnap 1.0.26 in December 2009, bug bounties in 2011, a Tarsnap book in 2015, and Tarsnap 1.0.41 in March 2025. The supplied package-manager metadata shows Tarsnap packaged in Homebrew, MacPorts, Nix, and Arch.

### 使用方式

Users create, list, extract, delete, verify, and recover encrypted remote archives with the tarsnap CLI and related key utilities. The official man page documents keyfile and cachedir driven operation, default configuration files, archive listing, fsck/recovery modes, and examples for cron-based full-system backups.

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

Package nerds care because Tarsnap is a compact, scriptable backup primitive with serious cryptographic and operational opinions. Its package surface includes multiple binaries, configuration files, key generation, cache directories, man pages, and a GUI-facing initialization mode, all of which make it a classic Unix packaging case rather than a single executable.

### 时间线

- 2009-09: Official news says the non-minimalist tarsnap.com website replaced scattered beta-era information.
- 2009-12: Tarsnap 1.0.26 released.
- 2011-04: Official bug bounty program announced.
- 2015-03: Official news notes publication of Tarsnap Mastery.
- 2015-05: Official GitHub repository created for client-code development visibility.
- 2022-02: Tarsnap 1.0.40 released.
- 2025-03: Tarsnap 1.0.41 released with XDG config support and other changes.

### Related projects

- Tarsnap GUI, tarsnap-keygen, tarsnap-keymgmt, tarsnap-keyregen, tarsnap-recrypt, tar, libarchive, scrypt, spiped.

### 来源

- <https://github.com/Tarsnap/tarsnap official repository README: developer repo purpose and release-download recommendation.>
- <https://www.tarsnap.com/ official site: supported systems, encryption, source-code availability, deduplication, pricing, latest release.>
- <https://www.tarsnap.com/man-tarsnap-keygen.1.html official man page: key generation and keyfile purpose.>
- <https://www.tarsnap.com/man-tarsnap.1.html official man page: CLI modes, config files, keyfile/cachedir operation, examples.>
- <https://www.tarsnap.com/news.html official news: release and service timeline.>
- input source_facts.package-manager: brew, MacPorts, Nix, Arch packaging.


## 安全说明

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

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /usr/local/etc/tarsnap.conf, $XDG_CONFIG_HOME/tarsnap/tarsnap.conf, ~/.config/tarsnap/tarsnap.conf, ~/.tarsnaprc

## Credential files

- Unix: keyfile path passed via --keyfile, keyfile path configured in tarsnap.conf
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tarsnap
- **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 - tarsnap: normalized package name match | nixpkgs package indexes: pkgs/by-name/ta/tarsnap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - tarsnap - 1.0.41-1: normalized package name match | Arch Linux sync databases: tarsnap from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An online encrypted snapshotted backup service | https://www.tarsnap.com/
- MacPorts - tarsnap: normalized package name match | MacPorts ports tree: sysutils/tarsnap/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [tarsnapper](https://pkg.so/zh-hans/brew/tarsnapper/) - Popular package that depends on this formula.
- [tarsnap-gui](https://pkg.so/zh-hans/brew/tarsnap-gui/) - Popular package that depends on this formula.
- [skm](https://pkg.so/zh-hans/brew/skm/) - Shares pkgdb curated category or tags: backup, cli, security.
- [qrkey](https://pkg.so/zh-hans/brew/qrkey/) - Shares pkgdb curated category or tags: backup, cli, security.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, security.
- [p11-kit](https://pkg.so/zh-hans/brew/p11-kit/) - Shares pkgdb curated category or tags: cli, security.
- [gnupg](https://pkg.so/zh-hans/brew/gnupg/) - Shares pkgdb curated category or tags: cli, security.
- [scrypt](https://pkg.so/zh-hans/brew/scrypt/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, openssl, security.
- [prowler](https://pkg.so/zh-hans/brew/prowler/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, cloud, openssl, openssl-3, security.

## Combined YAML source

View the package source record on GitHub. [combined/tarsnap.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tarsnap.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
