Install latest version of RAR in Linux

Run as root.

wget https://www.rarlab.com/rar/rarlinux-x64-5.8.0.tar.gz
tar -xf rarlinux-x64-5.8.0.tar.gz
cd rar

chmod +x rar unrar
mv rar unrar /usr/bin
mv rarfiles.lst /etc

wget -O rarreg.key https://pastebin.com/raw/Ed7iQSPm
mv default.sfx rarreg.key /usr/local/lib

cd ..
rm -r rar
rm rarlinux-x64-5.8.0.tar.gz
bash