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

查看 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
