# 使用 Homebrew 安装 gnu-tar

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

## 安装

```sh
sudo av install brew:gnu-tar
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gnu-tar
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:gnu-tar
- **软件包管理器:** Homebrew
- **版本:** 1.35
- **来源摘要:** GNU version of the tar archiving utility
- **主页:** <https://www.gnu.org/software/tar/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gtar (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GNU tar is the GNU archiving program for creating, listing, updating, and extracting tar archives. It is one of the package ecosystem's foundational tools because source releases, backups, and portable file bundles often travel as tar archives.

### 项目历史

The GNU tar README says GNU tar is derived from John Gilmore's public-domain tar. The GNU tar manual credits John Gilmore as the original author, Jay Fenlason and Joy Kendall for GNU enhancements, and later maintenance by Thomas Bushnell, n/BSG, Francois Pinard, Paul Eggert, and Sergey Poznyakoff with many contributors.

GNU tar development also reflects the long evolution of archive formats and recovery needs. The manual notes that active development and maintenance resumed after the project was put on CVS at Savannah in July 2003, and it credits Sergey Poznyakoff with POSIX archive support.

### 采用历史

tar began as a tape archiver, but GNU tar helped make tar archives a routine interchange format for free software. The GNU manual explicitly notes that the GNU Project distributes software bundled into tar archives so related files can move as a single unit, a practice that made tarballs central to source distribution and package building.

### 使用方式

Practitioners use GNU tar to create and extract source tarballs, preserve directory trees, list archive contents, append or update members, stream archives through pipes, and combine archiving with compression tools. System administrators also use GNU tar for full and incremental backups, including snapshot-file workflows with --listed-incremental.

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

GNU tar is package-nerd bedrock: release artifacts, distro build recipes, reproducible archives, vendor source bundles, and backup scripts all depend on tar behavior. Details such as pax headers, sparse files, compression integration, path handling, and incremental metadata are small options with large consequences for reproducibility and restore safety.

### 时间线

- 1980s: GNU tar grew from John Gilmore's public-domain tar into a GNU-maintained archiver.
- 2003: GNU tar was put on CVS at Savannah and active maintenance resumed.
- 2021: Version 1.34 notes record extraction and permission-handling fixes.
- 2023: Version 1.35 notes include compatibility and backup-related fixes.
- 2026: Git NEWS for 1.35.90 describes reproducibility work, extraction safety fixes, and performance improvements.

### Related projects

- GNU tar is tightly related to gzip, bzip2, xz, cpio, rmt, POSIX pax archives, source-release tooling, and package-manager build systems.

### 来源

- <https://git.savannah.gnu.org/cgit/tar.git/plain/NEWS>
- <https://git.savannah.gnu.org/cgit/tar.git/plain/README>
- <https://www.gnu.org/software/tar/>
- <https://www.gnu.org/software/tar/manual/html_node/Authors.html>
- <https://www.gnu.org/software/tar/manual/html_node/Incremental-Dumps.html>
- <https://www.gnu.org/software/tar/manual/html_node/What-tar-Does.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
