unar command not found

In this troubleshooting guide we learn how to fix unar command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

unar: command not found

or when using sudo you get the following error message

sudo: unar: command not found

Solutions to unar: command not found

How To Fix unar: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu unar is provided by unar package.

unar is:

The Unarchiver is an archive unpacker program with support for the popular zip, RAR, 7z, tar, gzip, bzip2, LZMA, XZ, CAB, MSI, NSIS, EXE, ISO, BIN, and split file formats, as well as the old Stuffit, Stuffit X, DiskDouble, Compact Pro, Packit, cpio, compress (.Z), ARJ, ARC, PAK, ACE, ZOO, LZH, ADF, DMS, LZX, PowerPacker, LBR, Squeeze, Crunch, and other old formats.

This package contains the lsar tool which lists the contents of archives and the unar tool which extracts those contents.

To fix this problem, we can install more using the command below.

sudo apt-get -y install unar

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install unar.

sudo apt -y install unar

Or if you have aptitude installed you can use the following command.

sudo aptitude install unar

Summary

In this tutorial we learn how to fix unar command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.