Please make sure your computer already install brew (如果没有安装,请查看这里 https://brew.sh/ )

The first install unrar 

brew install unrar


unzip rar file 

unrar x file.rar