open rar files on mac with :

tar -xf archive.rar

https://superuser.com/a/1842470