How to Install Rar/Unrar in Linux


RAR is tool for creating/extracting compressed archive (.rar) files. 


Steps to Install on RHEL/Centos

# cd /usr/src (Or any other folder)
# wget https://www.rarlab.com/rar/rarlinux-x64-5.6.0.tar.gz
# tar -zxvf rarlinux-x64-5.6.0.tar.gz
# cd rar
# sudo cp -v rar unrar /usr/local/bin/


Steps to install on Debian and Ubuntu based distributions

$ sudo apt-get install unrar
or
$ sudo apt install unrar