# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gnu-tar>
- **版本:** 1.35
- **来源摘要:** GNU version of the tar archiving utility
- **主页:** <https://www.gnu.org/software/tar/>
- **上游文档:** <https://www.gnu.org/software/tar/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://ftpmirror.gnu.org/gnu/tar/tar-1.35.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gtar (cli)
- gtar (别名)

## 安装行为

- post-install 钩子: 未定义
- 注意事项: GNU "tar" has been installed as "gtar". If you need to use it as "tar", you can add a "gnubin" directory to your PATH from your bashrc like: PATH="$HOMEBREW_PREFIX/opt/gnu-tar/libexec/gnubin:$PATH"
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

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

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gnu-tar
- **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


## 相关链接

- [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.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [dpkg](https://pkg.so/zh-hans/brew/dpkg/) - Popular package that depends on this formula.
- [borgbackup](https://pkg.so/zh-hans/brew/borgbackup/) - Shares pkgdb curated category or tags: archive, backup, cli, compression, system.
- [cpio](https://pkg.so/zh-hans/brew/cpio/) - Shares pkgdb curated category or tags: archive, backup, cli, system, tar.
- [libzip](https://pkg.so/zh-hans/brew/libzip/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [p7zip](https://pkg.so/zh-hans/brew/p7zip/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [unar](https://pkg.so/zh-hans/brew/unar/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [squashfs](https://pkg.so/zh-hans/brew/squashfs/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [gzip](https://pkg.so/zh-hans/brew/gzip/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [logrotate](https://pkg.so/zh-hans/brew/logrotate/) - Shares pkgdb curated category or tags: cli, compression, system, unix.
- [gnu-time](https://pkg.so/zh-hans/brew/gnu-time/) - Package names and metadata indicate a similar tool family. Shared terms: cli, gnu, system.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
