# 使用 Homebrew, apt, Nix, zypper, MacPorts 安装 gzrt

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

## 安装

```sh
sudo av install brew:gzrt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gzrt
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gzrecover
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install gzrt
```

  证据: Debian stable package indexes: gzrt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#gzrt
```

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

- zypper (92%):

```sh
sudo zypper install gzrt
```

  证据: openSUSE Tumbleweed package metadata: gzrt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:gzrt
- **软件包管理器:** Homebrew
- **版本:** 0.8
- **来源摘要:** Gzip recovery toolkit
- **主页:** <https://www.urbanophile.com/arenn/coding/gzrt/gzrt.html>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gzrecover (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

The Gzip Recovery Toolkit, centered on the gzrecover program, is a small recovery utility for extracting readable data from corrupted gzip files. Its history is thin but practical: it exists because ordinary gzip and tar workflows can fail hard when a compressed backup contains bad sectors or corrupted bytes.

### 项目历史

Aaron M. Renn's project page explains the origin in backup recovery: a gzip archive failed partway through restore, and gzrecover was written to skip bad data and salvage what could be read. The page and README both stress that recovery is best-effort and that recovered output must be manually verified.

The project page lists gzrt 0.8 from October 2013 and points to a GitHub repository for sources. GitHub repository metadata records the public repository as created in February 2012, with the description 'gzip Recovery Toolkit aka gzrecover'.

### 采用历史

gzrt adoption is mostly in Unix package repositories where administrators may need it once, urgently, for a damaged .gz or .tar.gz backup. The supplied package facts show Homebrew, Debian, Ubuntu, MacPorts, Nix, and zypper coverage, which is broad for a niche recovery tool.

Its adoption is also tied to gzip's dominance. Because .gz and .tar.gz files are common backup and source-distribution artifacts, a recovery utility for damaged gzip streams has a place in package collections even when it is not a daily-use command.

### 使用方式

gzrecover reads a corrupted gzip file or standard input and writes recovered output to a .recovered file by default, with options for output filename, standard-output pipeline mode, verbose logging, and splitting recovered segments. For recovered tarballs, the documentation recommends GNU cpio because tar may stop on format errors.

The project page cautions that many apparently corrupted gzip archives were transferred in FTP ASCII mode and should be re-transferred in binary mode before attempting recovery. That warning is part of the tool's operational history: it is a last-resort recovery command, not a replacement for gunzip.

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

gzrt is interesting to package nerds because it is tiny, old-school, and high-leverage: a single-purpose C utility that can rescue data from the same compressed archives package systems and admins rely on. It also illustrates why distributions keep niche tools around: the value appears when a corrupted backup is the only copy.

It pairs naturally with gzip, zlib, tar, and cpio. The documented tarball recovery flow is a classic Unix composition: run gzrecover to salvage a stream, then use cpio to extract around damaged tar records.

### 时间线

- 2002: Copyright history for gzrecover begins.
- 2012: The public GitHub repository was created.
- 2013: gzrt 0.8 was published with bug fixes and improvements.
- 2010s-2020s: Package-manager coverage included Homebrew, Debian, Ubuntu, MacPorts, Nix, and zypper according to the supplied package facts.

### Related projects

- gzrt is directly related to GNU gzip, zlib, GNU tar, and GNU cpio. It belongs beside other data-recovery and archive-repair utilities rather than general compression tools.

### 来源

- <https://api.github.com/repos/arenn/gzrt>
- <https://github.com/arenn/gzrt>
- <https://raw.githubusercontent.com/arenn/gzrt/master/README>
- <https://www.urbanophile.com/arenn/coding/gzrt/gzrt.html>
- <https://www.urbanophile.com/arenn/hacking/gzrt/gzrt.html>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - gzrt - 0.8-1+b1: normalized package name match | Debian stable package indexes: gzrt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | gzip recovery toolkit | http://www.urbanophile.com/arenn/hacking/gzrt/
- Nix - gzrt: normalized package name match | nixpkgs package indexes: pkgs/by-name/gz/gzrt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gzrt - 0.8-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: gzrt from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | gzip recovery toolkit | http://www.urbanophile.com/arenn/hacking/gzrt/
- zypper - gzrt - 0.8-2.24: normalized package name match | openSUSE Tumbleweed package metadata: gzrt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Recover data from a corrupted gzip file | https://www.urbanophile.com/arenn/hacking/gzrt/gzrt.html
- MacPorts - gzrecover: installed executable or alias match | MacPorts ports tree: archivers/gzrecover/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/gzrt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gzrt.yml)


## 来源

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