unrar installation using brew

C++
brew install unrar
Source

Also in C++: