# 使用 Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper 安装 ncompress

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

## 安装

```sh
sudo av install brew:ncompress
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ncompress
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ncompress
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install ncompress
```

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

- dnf (92%):

```sh
sudo dnf install ncompress
```

  证据: Fedora Rawhide package metadata: ncompress from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ncompress
```

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

- pacman (92%):

```sh
sudo pacman -S ncompress
```

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

- zypper (92%):

```sh
sudo zypper install ncompress
```

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

## 软件包事实

- **软件包键:** brew:ncompress
- **软件包管理器:** Homebrew
- **版本:** 5.0
- **来源摘要:** Fast, simple LZW file compressor
- **主页:** <https://vapier.github.io/ncompress/>
- **仓库:** <https://github.com/vapier/ncompress>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- compress (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ncompress packages the old Unix compress utility lineage: a fast, simple LZW compressor that produces .Z-style compressed files. Upstream is explicit about the tradeoff: compress is not the best compression ratio, but it is fast and historically became a de facto Unix standard.

### 项目历史

The upstream history reconstructs compress from early Usenet-era releases: Spencer Thomas released compress 1.4 on net.sources on July 5, 1984, Joseph Orost released portable updates including 3.0 and 4.0 in 1985, and compress 4.0 was merged into BSD before 4.3BSD. The later ncompress name appears around Peter Jannesen's 4.2.x line in 1992, meant to reduce confusion among incompatible unofficial compress 4.x forks.

### 采用历史

The project was shaped by LZW patent history: upstream says patent concerns effectively halted development after the 1985 LZW patent grant, while later patent expiration made the code patent-free worldwide by mid-2004. Mike Frysinger restarted maintenance in 2006 to unify distribution patches, moved the repository to GitHub in 2015, and began the 5.x series in 2020.

### 使用方式

Package users install ncompress when they need compatibility with .Z archives or old scripts that expect compress, uncompress, zcat-style behavior. It is maintenance infrastructure rather than a modern compression recommendation: gzip, bzip2, xz, and zstd normally win for new data, while ncompress is for historical archives and interoperability.

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

ncompress is package-nerd archaeology that still matters. It preserves a public-domain Unix file format path, keeps old compressed outputs readable, and documents a surprisingly tangled history of Usenet releases, BSD import, patent chill, downstream patch drift, and later consolidation.

### 时间线

- July 5, 1984: compress 1.4 released on net.sources.
- January 3, 1985: compress 3.0 changes the compressed output format.
- August 1, 1985: compress 4.0 released, later becoming the foundation for many forks.
- September 1985: compress 4.0 merged into BSD before the 4.3BSD release.
- August-October 1992: ncompress 4.2.3 and 4.2.4 released.
- 2004: LZW counterpart patents expire worldwide.
- 2006: Mike Frysinger starts the ncompress maintenance project.
- 2021: ncompress 5.0 released.

### Related projects

- compress, uncompress, gzip, LZW, BSD, historical .Z archives

### 来源

- <https://formulae.brew.sh/formula/ncompress>
- <https://github.com/vapier/ncompress>
- <https://vapier.github.io/ncompress/>


## 安全说明

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

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

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

- Debian apt - ncompress - 5.0-3: normalized package name match | Debian stable package indexes: ncompress from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | original Lempel-Ziv compress/uncompress programs | https://github.com/vapier/ncompress
- Nix - ncompress: normalized package name match | nixpkgs package indexes: pkgs/by-name/nc/ncompress/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ncompress - 5.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ncompress from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | original Lempel-Ziv compress/uncompress programs | https://github.com/vapier/ncompress
- dnf - ncompress - 5.0-12.fc45: normalized package name match | Fedora Rawhide package metadata: ncompress from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Fast compression and decompression utilities | https://github.com/vapier/ncompress
- pacman - ncompress - 5.0-3: normalized package name match | Arch Linux sync databases: ncompress from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | a fast, simple LZW file compressor | https://github.com/vapier/ncompress
- zypper - ncompress - 5.0-3.5: normalized package name match | openSUSE Tumbleweed package metadata: ncompress from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | LZW compression and decompression utilities | https://github.com/vapier/ncompress
- MacPorts - ncompress: normalized package name match | MacPorts ports tree: archivers/ncompress/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/ncompress.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ncompress.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
