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

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

## インストール

```sh
sudo av install brew:lhasa
```

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

### macOS

- Homebrew (100%):

```sh
brew install lhasa
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lhasa
```

  証拠: MacPorts ports tree: archivers/lhasa/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install lhasa
```

  証拠: Debian stable package indexes: lhasa from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install lhasa
```

  証拠: Fedora Rawhide package metadata: lhasa 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#lhasa
```

  証拠: nixpkgs package indexes: pkgs/by-name/lh/lhasa/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S lhasa
```

  証拠: Arch Linux sync databases: lhasa from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install lhasa
```

  証拠: openSUSE Tumbleweed package metadata: lhasa from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- apk (92%):

```sh
sudo apk add lha
```

  証拠: Alpine Linux edge package indexes: lha from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

## パッケージ情報

- **パッケージキー:** brew:lhasa
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.6.0
- **ソース概要:** LHA implementation to decompress .lzh and .lzs archives
- **ホームページ:** <https://fragglet.github.io/lhasa/>
- **リポジトリ:** <https://github.com/fragglet/lhasa>
- **最終更新:** 2026-07-28T13:57:49+09:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- lha (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.6.0
## プロジェクトの歴史と使われ方

Lhasa is a free software implementation of the Unix LHA tool for reading LHA/LHarc `.lzh`, LArc `.lzs`, and related archive variants. It provides both a command-line `lha` compatible tool and a reusable library backend.

### プロジェクトの歴史

The project homepage frames Lhasa as a free replacement for the non-free Unix LHA tool, aiming to decompress as many LZH/LZS archive variants as possible and to match the original command-line output closely enough for compatibility with existing tools.

The README emphasizes reading/decompression rather than archive creation, compatibility with LArc and PMarc variants, and a regression test suite built from archives generated by different tools on different operating systems. GitHub releases show a public release line from 0.0.1 through 0.6.0.

### 採用の歴史

Lhasa is packaged by many Unix-like distributions and ports systems, including Debian/Ubuntu, FreeBSD, OpenBSD, Homebrew, NetBSD pkgsrc, openSUSE, Void Linux, Alpine, Fedora/DNF, Arch, Nix, and MacPorts. Its adoption comes from archive compatibility rather than application glamour: people still need to unpack old `.lzh` and `.lzs` files.

### 使われ方

Users invoke the installed `lha` command to list or extract legacy archives, while developers can use the library backend for archive parsing. Because it tries to mimic the older Unix LHA interface, it can replace workflows that expect `lha` output.

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

Lhasa matters to package nerds as a small compatibility and preservation tool: it replaces a historically non-free archiver interface with an ISC-licensed implementation, keeps legacy Japanese/DOS-era archive formats accessible, and gives distributions a clean default for LHA extraction.

### タイムライン

- 2015-04-20: GitHub releases list the 0.0.1 through 0.3.0 Lhasa releases.
- 2016-03-31: Lhasa 0.3.1 was published as a GitHub release.
- 2023-05-14: Lhasa 0.4.0 was published as a GitHub release.
- 2025-08-02: Lhasa 0.5.0 was published as a GitHub release.
- 2026-06-17: Lhasa 0.6.0 was published as a GitHub release.

### Related projects

- Lhasa is related to the original Unix LHA tool, LHarc/LHA archive formats, LArc `.lzs`, PMarc `.pma`, archive extraction tools, and distribution archive packages.

### ソース

- <https://formulae.brew.sh/formula/lhasa>
- <https://fragglet.github.io/lhasa>
- <https://github.com/fragglet/lhasa/releases>
- <https://raw.githubusercontent.com/fragglet/lhasa/master/README.md>


## セキュリティノート

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

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

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

- Debian apt - lhasa - 0.4.0-1+b2: normalized package name match | Debian stable package indexes: lhasa from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lzh archive decompressor | https://fragglet.github.io/lhasa/
- Debian apt - liblhasa-dev - 0.4.0-1+b2: normalized package name match | Debian stable package indexes: liblhasa-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lzh decompression library - development files | https://fragglet.github.io/lhasa/
- Debian apt - liblhasa0 - 0.4.0-1+b2: normalized package name match | Debian stable package indexes: liblhasa0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lzh archive decompression library | https://fragglet.github.io/lhasa/
- Nix - lhasa: normalized package name match | nixpkgs package indexes: pkgs/by-name/lh/lhasa/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - lhasa - 0.4.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: lhasa from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lzh archive decompressor | https://fragglet.github.io/lhasa/
- Ubuntu apt - liblhasa-dev - 0.4.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: liblhasa-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lzh decompression library - development files | https://fragglet.github.io/lhasa/
- Ubuntu apt - liblhasa0 - 0.4.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: liblhasa0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lzh archive decompression library | https://fragglet.github.io/lhasa/
- dnf - lhasa - 0.6.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: lhasa from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Free Software LHA implementation | https://fragglet.github.io/lhasa/
- dnf - lhasa-devel - 0.6.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: lhasa-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for Lhasa | https://fragglet.github.io/lhasa/
- dnf - lhasa-doc - 0.6.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: lhasa-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation for Lhasa | https://fragglet.github.io/lhasa/
- dnf - lhasa-libs - 0.6.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: lhasa-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Free Software LHA implementation | https://fragglet.github.io/lhasa/
- pacman - lhasa - 0.5.0-1: normalized package name match | Arch Linux sync databases: lhasa from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Free LZH/LHA archive tool | https://github.com/fragglet/lhasa
- zypper - lhasa - 0.6.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: lhasa from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Program to unpack LHARC archives | http://fragglet.github.com/lhasa/
- zypper - lhasa-devel - 0.6.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: lhasa-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for liblhasa, a LHARC decompression library | http://fragglet.github.com/lhasa/
- zypper - liblhasa0 - 0.6.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: liblhasa0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A decompression library for the LHARC data format | http://fragglet.github.com/lhasa/
- MacPorts - lhasa: normalized package name match | MacPorts ports tree: archivers/lhasa/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/lhasa.yml](https://github.com/mxcl/pkgdb/blob/main/combined/lhasa.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
