macOS
brew install unarlocal Homebrew formula metadata
sudo port install unarMacPorts ports tree · archivers/unar/Portfile · source: api.github.com
brew
Command-line unarchiving tools supporting multiple formats. Version 1.10.8 via Homebrew; verified from local package data.
install
brew install unarlocal Homebrew formula metadata
sudo port install unarMacPorts ports tree · archivers/unar/Portfile · source: api.github.com
sudo apt install unarDebian stable package indexes · unar · source: deb.debian.org
sudo dnf install unarFedora Rawhide package metadata · unar · source: dl.fedoraproject.org
nix profile install nixpkgs#unarnixpkgs package indexes · pkgs/by-name/un/unar/package.nix · source: api.github.com
sudo zypper install unaropenSUSE Tumbleweed package metadata · unar · source: download.opensuse.org
scoop install main/unarScoop official bucket manifest trees · bucket/unar.json · source: api.github.com
overview
Command-line unarchiving tools supporting multiple formats
history
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.
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.
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.
`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.
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
lsar | cli | global executable | |
unar | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/MacPaw/XADMaster
install metadata
| Package key | brew:unar |
|---|---|
| Version | 1.10.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/unar |
| 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 |
| Uses from macOS | bzip2 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | unar |
| Version Scheme | 0 |
| Revision | 7 |
| Head Version | HEAD |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
unar 1.10.8+ds1-9
Unarchiver for a variety of file formats
https://theunarchiver.com/command-line
sudo apt install unarunar
nix profile install nixpkgs#unarunar 1.10.7+ds1+really1.10.1-3build1
Unarchiver for a variety of file formats
https://theunarchiver.com/command-line
sudo apt install unarunar 1.10.8-16.fc45
Multi-format extractor
https://theunarchiver.com/command-line
sudo dnf install unarunar 1.10.8-3.6
Multi-format unarchiver
https://unarchiver.c3.cx/commandline
sudo zypper install unarunar
sudo port install unarmain/unar
scoop install main/unarsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.