Seems linux people don’t like RAR very much, it is not easy to install from most package managers it seems. Some used to have it, then removed it because it was not free.
Then some people come up with limited free versions etc. etc. I ended up just getting it direct from the source @ rarlab.
Move to your tmp folder and download from rarlab site.
cd /tmp wget https://www.rarlab.com/rar/rarlinux-x64-5.8.b1.tar.gz
Extract the downloaded file (extracts to rar folder).
tar -zxvf rarlinux-x64-5.8.b1.tar.gz
Move the files to your /bin folder so you can execute rar and unrar from anywhere on your system.
cp rar/rar rar/unrar /bin
That’s about it. Now you can actually use the full power of rar on your linux box.