I had some trouble until i finally managed to install unrar on my RaspberryPi. After some digging around in the internet I found a Thread on the RaspberryPi Forum which lead me the way to easily install UNRAR on the little Raspi running on RaspBian
There is the possibility to use the old Free-Version of unrar but i read somewhere that’s not able to unpack more recent rar-archives.
He we go selfcompiled™:
First we need to enable or put in the following line in your /etc/apt/sources.list
deb-src http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
Alternative to this you can add this line to your config file by running following command:
echo "deb-src http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi" | sudo tee -a /etc/apt/sources.list
Okay we’re ready to go. Execute following commands as root:
sudo apt-get update
sudo apt-get build-dep unrar-nonfree
sudo apt-get source -b unrar-nonfree
sudo dpkg -i unrar_4.1.4-1_armhf.deb
By running the last command you’ll install the previously builded Debian Package. After build-dep and source you can probably grab a cup of coffee because it will take some time during the compile process.