macOS
brew install lz4local Homebrew formula metadata
sudo port install lz4MacPorts ports tree · archivers/lz4/Portfile · 来源: api.github.com
安装
brew install lz4local Homebrew formula metadata
sudo port install lz4MacPorts ports tree · archivers/lz4/Portfile · 来源: api.github.com
sudo apk add lz4Alpine Linux edge package indexes · lz4 · 来源: dl-cdn.alpinelinux.org
sudo dnf install lz4Fedora Rawhide package metadata · lz4 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#lz4nixpkgs package indexes · pkgs/by-name/lz/lz4/package.nix · 来源: api.github.com
sudo pacman -S lz4Arch Linux sync databases · lz4 · 来源: geo.mirror.pkgbuild.com
sudo zypper install lz4openSUSE Tumbleweed package metadata · lz4 · 来源: download.opensuse.org
scoop install main/lz4Scoop official bucket manifest trees · bucket/lz4.json · 来源: api.github.com
概览
Extremely Fast Compression algorithm
历史
LZ4 is a lossless compression format, C library, and command-line tool centered on very high compression and decompression throughput. The official project describes it as an algorithm with compression above 500 MB/s per core and a decoder that can run in the multiple-GB/s-per-core range, with LZ4_HC available when users want a slower but denser high-compression mode.
The reference implementation is associated with Yann Collet and dates to the early 2010s; the official library license carries a 2011 copyright line. The project settled into the familiar Unix package shape of a small C library plus CLI programs such as lz4, unlz4, lz4cat, and legacy-compatible lz4c.
LZ4's upstream history is unusually important for package maintainers because the format became embedded below the application layer: libraries, storage systems, language bindings, kernels, databases, and transport protocols all wanted a very fast, low-latency compressor. Later releases kept that core identity while expanding the production surface, including official frame-format support, dictionary APIs, and, in the v1.10.0 release, multithreaded compression work aimed at modern multi-core and high-throughput storage systems.
LZ4 became a default packaging candidate because it fills a practical niche that gzip, bzip2, and xz do not: fast enough for hot paths, simple enough to vendor, and portable enough for every Unix-like distribution. The input package facts show it packaged across Homebrew, Debian/Ubuntu, Fedora, Arch, Alpine, MacPorts, Nix, Scoop, and openSUSE-style ecosystems.
In package-manager culture, LZ4 is often installed less as an end-user archiver and more as infrastructure: a build dependency, a runtime shared library, or a fast compressor used by other tools. That makes ABI stability, CLI compatibility, and the distinction between raw blocks and framed .lz4 files recurring concerns for maintainers.
The lz4 command compresses and decompresses files, while unlz4 and lz4cat provide decompression-oriented entry points. Users pick it when speed is more important than maximum compression ratio, especially for logs, caches, temporary artifacts, backup pipelines, and data streams.
Developers usually consume liblz4 directly for in-memory buffers or the LZ4 frame API when data needs a self-describing stream format. High-compression mode is useful for precompressed assets, but the package's everyday reputation comes from the fast path.
LZ4 is a package nerd staple because it is a small C project with huge transitive reach. It shows up as both a leaf CLI and a dependency of larger systems, so distributions care about symbol versions, shared-library packaging, test vectors, frame-format compatibility, and whether downstreams accidentally mix raw LZ4 blocks with framed files.
It also marks a generational shift in compression packaging: instead of treating compression as a storage-only tradeoff, LZ4 made compression cheap enough to appear in latency-sensitive runtime paths.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
lz4 | cli | 全局可执行文件 | |
lz4c | cli | 全局可执行文件 | |
lz4cat | cli | 全局可执行文件 | |
unlz4 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:lz4 |
|---|---|
| 版本 | 1.10.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/lz4 |
| 主页 | https://lz4.github.io/lz4/ |
| 仓库 | https://github.com/lz4/lz4 |
| 上游文档 | https://github.com/lz4/lz4#readme |
| 许可证 | BSD-2-Clause |
| 源码归档 | https://github.com/lz4/lz4/archive/refs/tags/v1.10.0.tar.gz |
| Bottle | 可用 (于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sequoia, sonoma, tahoe, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lz4 |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
liblz4-1 1.10.0-4
Fast LZ compression algorithm library - runtime
sudo apt install liblz4-1liblz4-dev 1.10.0-4
Fast LZ compression algorithm library - development files
sudo apt install liblz4-devlz4 1.10.0-4
Fast LZ compression algorithm library - tool
sudo apt install lz4lz4
nix profile install nixpkgs#lz4liblz4-1 1.9.4-1build1
Fast LZ compression algorithm library - runtime
sudo apt install liblz4-1liblz4-dev 1.9.4-1build1
Fast LZ compression algorithm library - development files
sudo apt install liblz4-devliblz4-tool 1.9.4-1build1
Fast LZ compression algorithm library - transitional package
sudo apt install liblz4-toollz4 1.9.4-1build1
Fast LZ compression algorithm library - tool
sudo apt install lz4lz4 1.10.0-r1
LZ4 is lossless compression algorithm with fast decoder @ multiple GB/s per core.
sudo apk add lz4lz4-dev 1.10.0-r1
LZ4 is lossless compression algorithm with fast decoder @ multiple GB/s per core. (development files)
sudo apk add lz4-devlz4-doc 1.10.0-r1
LZ4 is lossless compression algorithm with fast decoder @ multiple GB/s per core. (documentation)
sudo apk add lz4-doclz4-libs 1.10.0-r1
LZ4 is lossless compression algorithm with fast decoder @ multiple GB/s per core. (libraries)
sudo apk add lz4-libslz4-static 1.10.0-r1
LZ4 is lossless compression algorithm with fast decoder @ multiple GB/s per core. (static library)
sudo apk add lz4-staticlz4-tests 1.10.0-r1
LZ4 is lossless compression algorithm with fast decoder @ multiple GB/s per core. (tests)
sudo apk add lz4-testslz4 1.10.0-4.fc44
Extremely fast compression algorithm
sudo dnf install lz4lz4-devel 1.10.0-4.fc44
Development files for lz4
sudo dnf install lz4-devel来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.