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
# 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
$ sudo apt install unrar