# Install unar with Homebrew, apt, dnf, MacPorts, Nix, scoop, zypper

Command-line unarchiving tools supporting multiple formats. Version 1.10.8 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:unar
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install unar
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install unar
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install unar
```

  Evidence: Debian stable package indexes: unar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install unar
```

  Evidence: Fedora Rawhide package metadata: unar 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#unar
```

  Evidence: nixpkgs package indexes: pkgs/by-name/un/unar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install unar
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/unar
```

  Evidence: Scoop official bucket manifest trees: bucket/unar.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:unar
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/unar>
- **Version:** 1.10.8
- **Source summary:** Command-line unarchiving tools supporting multiple formats
- **Homepage:** <https://theunarchiver.com/command-line>
- **Repository:** <https://github.com/MacPaw/XADMaster>
- **Upstream docs:** <https://theunarchiver.com/command-line>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://github.com/MacPaw/XADMaster/archive/refs/tags/v1.10.8.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- lsar (cli)
- unar (cli)
- lsar (alias)
- unar (alias)

## Uses from macOS

- bzip2

## 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: 1.10.8
- Local data: ok
- Upstream repository: https://github.com/MacPaw/XADMaster
- Upstream latest detected: v1.10.8 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

unar packages the command-line side of The Unarchiver/XADMaster: `unar` extracts archive contents and `lsar` lists them. Its history is tied to the Mac utility The Unarchiver, but the CLI became valuable on Unix-like systems because the same engine handles many ordinary, proprietary, old, and obscure archive formats.

### Project history

The official command-line page explains that The Unarchiver is a macOS app while the underlying unarchiving code can run on other operating systems, exposed through the `unar` and `lsar` command-line tools for macOS, Windows, and Linux.

The XADMaster README describes the engine as an Objective-C library for archive and file unarchiving and extraction. It supports formats such as Zip, Tar, Gzip, Bzip2, 7-Zip, RAR, LhA, StuffIt, Amiga archives, CAB, and LZX; uses libxad for old and obscure formats; and notes that it was originally developed by Dag Agren.

MacPaw's 2017 acquisition announcement says it bought The Unarchiver, promised to maintain it, improve it, and keep it free. The command-line code remained available through the XADMaster repository, with GitHub releases continuing through v1.10.8 in 2023.

### Adoption history

The official command-line page documents binary downloads for macOS and Windows and notes Ubuntu 12.04 packages under the package name `unar`. The input package metadata shows wider packaging across Homebrew, Debian, Fedora, MacPorts, Nix, Scoop, Ubuntu, and openSUSE.

In package-manager culture, `unar` spread because archive extraction is a recurring automation problem and the standard base tools do not cover the long tail of RAR, StuffIt, old Mac, Amiga, disk-image, and installer formats.

### How it is used

`unar` is used when a script or shell user needs extraction; `lsar` is used to inspect archive contents first. The official page gives package-manager installation examples and source build instructions for Linux with GNUstep and compression-library dependencies.

The package is especially useful in archival, reverse-engineering, data-recovery, and media-library workflows where the input archive format is unknown or old. It is less about compression creation and more about robust unpacking.

### Why package nerds care

unar is a package-nerd favorite because it turns a broad, format-savvy desktop unarchiver into a scriptable CLI. It fills the gap between base `tar`/`unzip` utilities and format-specific tools such as `unrar`.

Its long-tail format support also makes it valuable for reproducible package tests and historical software archives: a package manager can install one tool that understands many weird archives.

### Timeline

- 2017: MacPaw announces acquisition of The Unarchiver and related technology.
- 2018: MacPaw/XADMaster GitHub repository is created.
- 2018: XADMaster GitHub releases include v1.10.4.
- 2023: XADMaster v1.10.8 is released.

### Related projects

- The Unarchiver is the macOS GUI application using the same underlying unarchiving code.
- XADMaster is the upstream library/repository; libxad and UniversalDetector are related components noted by the official README.

### Sources

- GitHub release metadata via `gh api repos/MacPaw/XADMaster/releases`
- <https://github.com/MacPaw/XADMaster>
- <https://macpaw.com/news/macpaw-bought-unarchiver>
- <https://theunarchiver.com/>
- <https://theunarchiver.com/command-line>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** unar
- **Version Scheme:** 0
- **Revision:** 7
- **Head Version:** HEAD
- **Requirements:** xcode
- **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 - unar - 1.10.8+ds1-9: normalized package name match | Debian stable package indexes: unar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Unarchiver for a variety of file formats | https://theunarchiver.com/command-line
- Nix - unar: normalized package name match | nixpkgs package indexes: pkgs/by-name/un/unar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - unar - 1.10.7+ds1+really1.10.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: unar from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Unarchiver for a variety of file formats | https://theunarchiver.com/command-line
- dnf - unar - 1.10.8-16.fc45: normalized package name match | Fedora Rawhide package metadata: unar from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Multi-format extractor | https://theunarchiver.com/command-line
- zypper - unar - 1.10.8-3.6: normalized package name match | openSUSE Tumbleweed package metadata: unar from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Multi-format unarchiver | https://unarchiver.c3.cx/commandline
- MacPorts - unar: normalized package name match | MacPorts ports tree: archivers/unar/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/unar: normalized package name match | Scoop official bucket manifest trees: bucket/unar.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [bazarr](https://www.automicvault.com/pkg/brew/bazarr/) - Popular package that depends on this formula.
- [p7zip](https://www.automicvault.com/pkg/brew/p7zip/) - Shares av.db curated category or tags: archive, cli, compression, file-utilities, system.
- [unp](https://www.automicvault.com/pkg/brew/unp/) - Shares av.db curated category or tags: archive-utilities, cli, compression, system.
- [borgbackup](https://www.automicvault.com/pkg/brew/borgbackup/) - Shares av.db curated category or tags: archive, cli, compression, system.
- [clzip](https://www.automicvault.com/pkg/brew/clzip/) - Shares av.db curated category or tags: archive, cli, compression, system.
- [dtrx](https://www.automicvault.com/pkg/brew/dtrx/) - Shares av.db curated category or tags: archive, cli, compression, system.
- [gnu-tar](https://www.automicvault.com/pkg/brew/gnu-tar/) - Shares av.db curated category or tags: archive, cli, compression, system.
- [gzip](https://www.automicvault.com/pkg/brew/gzip/) - Shares av.db curated category or tags: archive, cli, compression, system.
- [libzip](https://www.automicvault.com/pkg/brew/libzip/) - Shares av.db curated category or tags: archive, cli, compression, system.
- [squashfs](https://www.automicvault.com/pkg/brew/squashfs/) - Local package facts share a topical domain. Shared terms: archive, cli, compression, file, system.
- [zip-a-folder](https://www.automicvault.com/pkg/npm/zip-a-folder/) - Local package facts share a topical domain. Shared terms: archive, cli, compression, file, system.

## Combined YAML source

View the package source record on GitHub. [combined/unar.yml](https://github.com/automic-vault/db/blob/main/combined/unar.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
