Setting up unrar for the command line via mac osx

this is a working method to setup unrar command for a mac osx

open terminal run the command below


cd ~/Desktop

curl -#LO http://www.rarlab.com/rar/rarosx-4.2.0.tar.gz

 tar -xvf rarosx-4.2.0.tar.gz

cd rar

sudo mv unrar /usr/bin/

Now you can run the unrar command


unrar e sample.rar 

Job Done ;)