Automic VaultAutomic Vault

brew

xz を Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, scoop, apt でインストール

xz のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install xz

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install xz

MacPorts ports tree · archivers/xz/Portfile · ソース: api.github.com

Linux

Alpine Linux apk確認済み · 92%
sudo apk add xz

Alpine Linux edge package indexes · xz · ソース: dl-cdn.alpinelinux.org

Fedora dnf確認済み · 92%
sudo dnf install xz

Fedora Rawhide package metadata · xz · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#xz

nixpkgs package indexes · xz · ソース: raw.githubusercontent.com

Arch Linux pacman確認済み · 92%
sudo pacman -S xz

Arch Linux sync databases · xz · ソース: geo.mirror.pkgbuild.com

openSUSE zypper確認済み · 92%
sudo zypper install xz

openSUSE Tumbleweed package metadata · xz · ソース: download.opensuse.org

Debian apt確認済み · 92%
sudo apt install lzma

Debian stable package indexes · lzma · ソース: deb.debian.org

Windows

Scoop確認済み · 92%
scoop install main/xz

Scoop official bucket manifest trees · bucket/xz.json · ソース: api.github.com

概要

パッケージ概要

General-purpose data compression with high compression ratio

コマンドとエイリアス

  • lzcat
  • lzcmp
  • lzdiff
  • lzegrep
  • lzfgrep
  • lzgrep
  • lzless
  • lzma
  • lzmadec
  • lzmainfo
  • lzmore
  • unlzma
  • unxz
  • xz
  • xzcat
  • xzcmp
  • xzdec
  • xzdiff
  • xzegrep
  • xzfgrep
  • xzgrep
  • xzless
  • xzmore

履歴

プロジェクトの歴史と使われ方

XZ Utils is the standard free-software implementation of the .xz container format, the LZMA2 compression method, and liblzma. It matters to package ecosystems because .tar.xz release archives, source packages, initramfs images, distribution payloads, and build systems rely on xz and liblzma for high-ratio lossless compression.

プロジェクトの歴史

XZ Utils comes from the Tukaani Project and the earlier LZMA Utils lineage maintained by Lasse Collin. The project generalized Igor Pavlov's LZMA-family compression ideas into the .xz format and liblzma API used by Unix-like systems.

The 5.0.0 release on 2010-10-23 was a major packaging milestone because the NEWS file marks liblzma API and ABI as stable and bumps the shared-library soname to 5.0.0. From a distro perspective, that turned xz from a promising compressor into a dependable system library.

The project continued to evolve around multithreading, build-system support, portability, translated documentation, and platform coverage. The official site lists support across GNU/Linux, BSDs, macOS/Darwin, Solaris, AIX, Windows, DOS, and several more specialized systems, which explains why package managers treat it as base infrastructure.

The 2024 CVE-2024-3094 backdoor is now part of XZ Utils history. Official Tukaani pages state that XZ Utils 5.6.0 and 5.6.1 release tarballs contained a backdoor inserted by a malicious co-maintainer and discovered by Andres Freund before broad stable distribution. The incident made xz one of the central examples in open-source supply-chain security discussions.

採用の歴史

XZ adoption followed its compression ratio and Unix-friendly tooling. The familiar xz, unxz, xzcat, xzgrep, xzless, and compatibility aliases made it a drop-in neighbor to gzip and bzip2, while liblzma let package managers and applications decode .xz streams without shelling out.

Distribution adoption became especially visible through .tar.xz source releases and compressed package artifacts. Many upstream projects now publish release tarballs as .tar.xz, and free operating systems commonly install xz or liblzma because so much source distribution and packaging machinery expects them.

After CVE-2024-3094, adoption history also includes a trust reset: project infrastructure moved back under Tukaani-controlled URLs, GitHub repositories were restored, and clean XZ Utils releases were made on 2024-05-29, according to the official backdoor page.

使われ方

Command-line users compress and decompress files with xz, unxz, and xzcat, inspect streams with xz --list, and use xzgrep/xzless style helpers for text workflows inside compressed files. It is common in source-release workflows as tar -cJf or tar.xz packaging.

Developers use liblzma directly or via bindings in languages such as Python, Perl, Haskell, Delphi, and Free Pascal. Package builders care about xz because archive format support, reproducible source distributions, and decompression availability can affect bootstrap chains.

パッケージ好きにとっての重要性

XZ Utils is package-manager bedrock: small enough to be invisible most days, but important enough that a bad release can shake the whole distribution world. It sits in build roots, source tarball handling, package extraction, and language runtime bindings.

The backdoor incident made xz historically significant beyond compression. It showed how a low-glamour maintainer package can become a high-value target precisely because it is everywhere, and why tarball provenance, release signing, maintainer access, and distro staging matter.

タイムライン

  • 2000s: Lasse Collin's Tukaani Project develops LZMA Utils and then XZ Utils around the .xz format, LZMA2, and liblzma.
  • 2010-10-23: XZ Utils 5.0.0 marks liblzma API and ABI stable with soname 5.0.0.
  • 2014-12-21: XZ Utils 5.2.0 continues the stable series and documents later multithreading-related caveats in NEWS.
  • 2022-04-07: A public patch fixes the xzgrep filename-handling issue tracked as CVE-2022-1271.
  • 2024-02-24 and 2024-03-09: XZ Utils 5.6.0 and 5.6.1 tarballs are released and later identified as backdoored.
  • 2024-03-29: Andres Freund's discovery of CVE-2024-3094 becomes public.
  • 2024-05-29: Official notes state that new clean XZ Utils releases were made after the backdoor response.
  • 2025-03-25: XZ Utils 5.8.0 continues the post-incident stable release line.

Related projects

  • LZMA Utils is the predecessor lineage and source of compatibility command aliases such as lzma, unlzma, and lzcat.
  • 7-Zip and Igor Pavlov's LZMA work are related through the compression algorithms and ecosystem that influenced .xz/LZMA2 tooling.
  • gzip and bzip2 are neighboring Unix compression utilities that xz often replaces when higher compression ratio matters.
  • libarchive, tar, dpkg, rpm, pacman, and many build systems are downstream consumers of .xz support.

セキュリティ状態

リスクレベル: blue

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

リスク分類器

リスク blue · 信頼度 中 · tool

理由

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

信号

  • text:compress

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 8 個のプラットフォームターゲットで利用できます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
lzcatcliグローバル実行可能ファイル
lzcmpcliグローバル実行可能ファイル
lzdiffcliグローバル実行可能ファイル
lzegrepcliグローバル実行可能ファイル
lzfgrepcliグローバル実行可能ファイル
lzgrepcliグローバル実行可能ファイル
lzlesscliグローバル実行可能ファイル
lzmacliグローバル実行可能ファイル
lzmadeccliグローバル実行可能ファイル
lzmainfocliグローバル実行可能ファイル
lzmorecliグローバル実行可能ファイル
unlzmacliグローバル実行可能ファイル
unxzcliグローバル実行可能ファイル
xzcliグローバル実行可能ファイル
xzcatcliグローバル実行可能ファイル
xzcmpcliグローバル実行可能ファイル
xzdeccliグローバル実行可能ファイル
xzdiffcliグローバル実行可能ファイル
xzegrepcliグローバル実行可能ファイル
xzfgrepcliグローバル実行可能ファイル
xzgrepcliグローバル実行可能ファイル
xzlesscliグローバル実行可能ファイル
xzmorecliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版5.8.3
マネージャ更新日
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/tukaani-project/xz

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:xz
バージョン5.8.3
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/xz
ホームページhttps://tukaani.org/xz/
リポジトリhttps://github.com/tukaani-project/xz
上流ドキュメントhttps://github.com/tukaani-project/xz#readme
ライセンス0BSD AND GPL-2.0-or-later
ソースアーカイブhttps://github.com/tukaani-project/xz/releases/download/v5.8.3/xz-5.8.3.tar.gz
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namexz
Version Scheme1
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

xz

nix profile install nixpkgs#xz
  • normalized package name match
  • 一致条件: Xz
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: xz from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
apk95%

xz 5.8.3-r0

Library and CLI tools for XZ and LZMA compressed files

https://tukaani.org/xz/

sudo apk add xz
  • License: GPL-2.0-or-later AND 0BSD AND Public-Domain AND LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: xz
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Xz
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xz from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

xz-dev 5.8.3-r0

Library and CLI tools for XZ and LZMA compressed files (development files)

https://tukaani.org/xz/

sudo apk add xz-dev
  • License: GPL-2.0-or-later AND 0BSD AND Public-Domain AND LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: xz
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Xz
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xz-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

xz-doc 5.8.3-r0

Library and CLI tools for XZ and LZMA compressed files (documentation)

https://tukaani.org/xz/

sudo apk add xz-doc
  • License: GPL-2.0-or-later AND 0BSD AND Public-Domain AND LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: xz
  • normalized package name match
  • 一致条件: Xz
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xz-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

xz-libs 5.8.3-r0

Library and CLI tools for XZ and LZMA compressed files (libraries)

https://tukaani.org/xz/

sudo apk add xz-libs
  • License: GPL-2.0-or-later AND 0BSD AND Public-Domain AND LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: xz
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Xz
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xz-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

xz-static 5.8.3-r0

Library and CLI tools for XZ and LZMA compressed files (static library)

https://tukaani.org/xz/

sudo apk add xz-static
  • License: GPL-2.0-or-later AND 0BSD AND Public-Domain AND LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: xz
  • 1 依存関係
  • normalized package name match
  • 一致条件: Xz
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xz-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

xz 5.8.3-1.fc45

LZMA compression utilities

https://tukaani.org/xz/

sudo dnf install xz
  • License: 0BSD AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: xz
  • 6 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Xz
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: xz from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

xz-devel 5.8.3-1.fc45

Devel libraries & headers for liblzma

https://tukaani.org/xz/

sudo dnf install xz-devel
  • License: 0BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: xz
  • 3 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Xz
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: xz-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

xz-libs 5.8.3-1.fc45

Libraries for decoding LZMA compression

https://tukaani.org/xz/

sudo dnf install xz-libs
  • License: 0BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: xz
  • 2 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Xz
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: xz-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

xz-lzma-compat 5.8.3-1.fc45

Older LZMA format compatibility binaries

https://tukaani.org/xz/

sudo dnf install xz-lzma-compat
  • License: 0BSD AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: xz
  • 4 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Xz
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: xz-lzma-compat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

xz-static 5.8.3-1.fc45

Statically linked library for decoding LZMA compression

https://tukaani.org/xz/

sudo dnf install xz-static
  • License: 0BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: xz
  • 1 提供
  • normalized package name match
  • 一致条件: Xz
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: xz-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

xz 5.8.3-1

Library and command line tools for XZ and LZMA compressed files

https://tukaani.org/xz/

sudo pacman -S xz
  • License: GPL-2.0-or-later AND 0BSD AND LicenseRef-Public-Domain AND LGPL-2.1-or-later
  • Architecture: x86_64
  • 2 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Xz
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: xz from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz
zypper95%

liblzma5 5.8.3-1.2

Lempel–Ziv–Markov chain algorithm compression library

https://tukaani.org/xz/

sudo zypper install liblzma5
  • License: 0BSD
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: xz
  • 2 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Xz
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: liblzma5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

liblzma5-32bit 5.8.3-1.2

Lempel–Ziv–Markov chain algorithm compression library

https://tukaani.org/xz/

sudo zypper install liblzma5-32bit
  • License: 0BSD
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: xz
  • 2 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Xz
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: liblzma5-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

liblzma5-x86-64-v3 5.8.3-1.2

Lempel–Ziv–Markov chain algorithm compression library

https://tukaani.org/xz/

sudo zypper install liblzma5-x86-64-v3
  • License: 0BSD
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: xz
  • 2 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Xz
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: liblzma5-x86-64-v3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

xz 5.8.3-1.2

A Program for Compressing Files with the Lempel–Ziv–Markov algorithm

https://tukaani.org/xz/

sudo zypper install xz
  • License: 0BSD AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later
  • Category: Productivity/Archiving/Compression
  • Architecture: x86_64
  • Source Package: xz
  • 3 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Xz
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: xz from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

Combined YAML source

View the package source record on GitHub.

combined/xz.yml

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment