Appearance
WinRAR is a trialware file archiver utility.
You have to add non-free into your sources.list file, like deb http://... <distrib> main non-free and execute apt update.
non-free
sources.list
deb http://... <distrib> main non-free
apt update
sudo apt install -y rar
Install with Homebrew.
brew install rar unrar