# Install lhasa with Homebrew, apt, dnf, Nix, pacman, zypper, apk, MacPorts

LHA implementation to decompress .lzh and .lzs archives. Version 0.6.0 via Homebrew; verified 2026-06-18.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install lhasa
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lha
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install lhasa
```

  Evidence: 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
```

  Evidence: Fedora Rawhide package metadata: lhasa from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#lhasa
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: lhasa from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

- apk (92%):

```sh
sudo apk add lha
```

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

## Package facts

- **Package key:** brew:lhasa
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/lhasa>
- **Version:** 0.6.0
- **Source summary:** LHA implementation to decompress .lzh and .lzs archives
- **Homepage:** <https://fragglet.github.io/lhasa/>
- **Repository:** <https://github.com/fragglet/lhasa>
- **Upstream docs:** <https://fragglet.github.io/lhasa>
- **License:** ISC
- **Source archive:** <https://github.com/fragglet/lhasa/archive/refs/tags/v0.6.0.tar.gz>
- **Last updated:** 2026-06-18T00:53:01Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- lha (cli)
- lha (alias)

## Build dependencies

- autoconf
- automake
- libtool
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.6.0
- Package-manager updated: 2026-06-18
- Local data: ok
- Upstream repository: https://github.com/fragglet/lhasa
- Upstream latest detected: v0.6.0 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** lhasa
- **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:** head, stable

## Other Package-Manager Records

- 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.5.0-1.fc44: normalized package name match | Fedora Rawhide package metadata: lhasa from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Free Software LHA implementation | https://fragglet.github.io/lhasa/
- dnf - lhasa-devel - 0.5.0-1.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for Lhasa | https://fragglet.github.io/lhasa/
- dnf - lhasa-doc - 0.5.0-1.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation for Lhasa | https://fragglet.github.io/lhasa/
- dnf - lhasa-libs - 0.5.0-1.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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.5.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: lhasa from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Program to unpack LHARC archives | http://fragglet.github.com/lhasa/
- zypper - lhasa-devel - 0.5.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: lhasa-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for liblhasa, a LHARC decompression library | http://fragglet.github.com/lhasa/
- zypper - liblhasa0 - 0.5.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: liblhasa0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A decompression library for the LHARC data format | http://fragglet.github.com/lhasa/
- MacPorts - lha: installed executable or alias match | MacPorts ports tree: archivers/lha/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ancient](https://www.automicvault.com/pkg/brew/ancient/) - Shares av.db curated category or tags: archive, cli, compression, decompression, developer-tools.
- [py7zr](https://www.automicvault.com/pkg/brew/py7zr/) - Shares av.db curated category or tags: archive, cli, compression, developer-tools.
- [zip](https://www.automicvault.com/pkg/brew/zip/) - Shares av.db curated category or tags: archive, cli, compression, developer-tools.
- [advancecomp](https://www.automicvault.com/pkg/brew/advancecomp/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [brotli](https://www.automicvault.com/pkg/brew/brotli/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [exomizer](https://www.automicvault.com/pkg/brew/exomizer/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [libdeflate](https://www.automicvault.com/pkg/brew/libdeflate/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [pigz](https://www.automicvault.com/pkg/brew/pigz/) - Shares av.db curated category or tags: cli, compression, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/lhasa.yml](https://github.com/automic-vault/db/blob/main/combined/lhasa.yml)


## Sources

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