# 使用 Homebrew, apk, apt, Nix, zypper 安装 heatshrink

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

## 安装

```sh
sudo av install brew:heatshrink
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install heatshrink
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add heatshrink
```

  证据: Alpine Linux edge package indexes: heatshrink from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install heatshrink
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#heatshrink
```

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

- zypper (92%):

```sh
sudo zypper install heatshrink
```

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

## 软件包事实

- **软件包键:** brew:heatshrink
- **软件包管理器:** Homebrew
- **版本:** 0.4.1
- **来源摘要:** Data compression library for embedded/real-time systems
- **主页:** <https://github.com/atomicobject/heatshrink>
- **仓库:** <https://github.com/atomicobject/heatshrink>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- heatshrink (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

heatshrink is a small C compression and decompression library aimed at embedded and real-time systems, with a companion command-line program for testing and measuring compression settings. Its package-manager interest comes from being a tiny, copy-into-your-firmware style library that also ships as a Unix CLI.

### 项目历史

Atomic Object published heatshrink as an LZSS-based compressor for environments where bounded memory and bounded CPU work are more important than maximum compression ratio. The repository metadata records the public GitHub project from March 2013, and the README describes a design that can run in tens or hundreds of bytes of memory, can be statically allocated, and exposes independent encoder and decoder files for direct embedding.

The project later documented an optional lightweight index for faster compression. That index kept with the same embedded-systems tradeoff: spend a small, predictable amount of additional memory to reduce search cost rather than introducing a large general-purpose compression runtime.

### 采用历史

heatshrink spread as a niche systems package rather than as an application platform. The input package facts record it in Homebrew, Debian, Ubuntu, Nix, and openSUSE-style packaging, which is typical for compact C utilities that developers want available both on build hosts and inside automated firmware toolchains.

### 使用方式

The README presents two usage modes: the standalone `heatshrink` command for compressing, decompressing, and evaluating window/lookahead settings, and direct inclusion of the encoder or decoder source files in another C project. Configuration centers on window size, lookahead size, input buffer size, and whether dynamic allocation is disabled for embedded builds.

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

For package nerds, heatshrink is interesting because it sits between a library and a diagnostic CLI. It is small enough to vendor into firmware, but packaging it gives Unix developers a reproducible host-side tool for generating or inspecting compressed payloads with the same algorithm as the embedded target.

### 时间线

- 2013: Public GitHub repository metadata records the heatshrink project.
- 2013: Atomic Object published an overview of heatshrink for embedded data compression.
- 2014: Atomic Object documented the optional lightweight index used to speed compression.
- Package-manager era: The input package facts record heatshrink availability in Homebrew, Debian, Ubuntu, Nix, and zypper-family packaging.

### Related projects

- heatshrink is related to the LZSS family of compressors and to embedded-friendly compression tools that favor predictable memory use over maximum compression ratio. It is also adjacent to firmware build systems that need a host-side compressor matching a tiny decoder on the device.

### 来源

- <https://github.com/atomicobject/heatshrink>
- <https://raw.githubusercontent.com/atomicobject/heatshrink/master/README.md>
- <https://spin.atomicobject.com/2013/03/14/heatshrink-embedded-data-compression/>
- <https://spin.atomicobject.com/2014/01/13/lightweight-indexing-for-embedded-systems/>


## 安全说明

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

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

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

- Debian apt - heatshrink - 0.4.1-3+b1: normalized package name match | Debian stable package indexes: heatshrink from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | data compression/decompression library for embedded/real-time systems | https://github.com/atomicobject/heatshrink/
- Debian apt - libheatshrink-dev - 0.4.1-3+b1: normalized package name match | Debian stable package indexes: libheatshrink-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | data compression/decompression library for embedded/real-time systems | https://github.com/atomicobject/heatshrink/
- Nix - heatshrink: normalized package name match | nixpkgs package indexes: pkgs/by-name/he/heatshrink/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - heatshrink - 0.4.1-3: normalized package name match | Ubuntu 24.04 LTS package indexes: heatshrink from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | data compression/decompression library for embedded/real-time systems | https://github.com/atomicobject/heatshrink/
- Ubuntu apt - libheatshrink-dev - 0.4.1-3: normalized package name match | Ubuntu 24.04 LTS package indexes: libheatshrink-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | data compression/decompression library for embedded/real-time systems | https://github.com/atomicobject/heatshrink/
- apk - heatshrink - 0.4.1-r0: normalized package name match | Alpine Linux edge package indexes: heatshrink from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Data compression library for embedded/real-time systems | https://github.com/atomicobject/heatshrink
- apk - heatshrink-dev - 0.4.1-r0: normalized package name match | Alpine Linux edge package indexes: heatshrink-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Data compression library for embedded/real-time systems (development files) | https://github.com/atomicobject/heatshrink
- zypper - heatshrink - 0.4.1-1.9: normalized package name match | openSUSE Tumbleweed package metadata: heatshrink from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Data compression library for embedded/real-time systems | https://github.com/atomicobject/heatshrink
- zypper - heatshrink-devel - 0.4.1-1.9: normalized package name match | openSUSE Tumbleweed package metadata: heatshrink-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for the heatshrink data compression library | https://github.com/atomicobject/heatshrink
- zypper - libheatshrink0_4_1 - 0.4.1-1.9: normalized package name match | openSUSE Tumbleweed package metadata: libheatshrink0_4_1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Data compression library for embedded/real-time systems | https://github.com/atomicobject/heatshrink
- zypper - libheatshrink_dynalloc0_4_1 - 0.4.1-1.9: normalized package name match | openSUSE Tumbleweed package metadata: libheatshrink_dynalloc0_4_1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Data compression library for embedded/real-time systems | https://github.com/atomicobject/heatshrink


## Combined YAML source

View the package source record on GitHub. [combined/heatshrink.yml](https://github.com/mxcl/pkgdb/blob/main/combined/heatshrink.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
