# 使用 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
- **版本:** 1.0.41
- **来源摘要:** Online backups for the truly paranoid
- **主页:** <https://www.tarsnap.com/>
- **仓库:** <https://github.com/Tarsnap/tarsnap>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0.41
## 项目历史与用法

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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
