rar command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
rar: command not found
or when using sudo you get the following error message
sudo: rar: command not found
Solutions to rar: command not found
How To Fix rar: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu rar is provided by rar package.
rar is:
This is the RAR archiver from Eugene Roshal. It supports multiple volume archives and damage protection. It can also create SFX-archives. There are versions which run on DOS, Windows (3.1x,95,NT), FreeBSD, BSDI.
This program is shareware and you must register it after 40 days of use.
To fix this problem, we can install more using the command below.
sudo apt-get -y install rar
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install rar.
sudo apt -y install rar
Or if you have aptitude installed you can use the following command.
sudo aptitude install rar
Summary
In this tutorial we learn how to fix rar command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.