This guide will show you how to install your own version of UnRAR. UnRAR will allow you to extract .rar archives and although it is already present on your server, there may be situations where you need a later version.

You'll need to execute some commands via SSH to use this software. There is a separate guide on how to connect to your slot via SSH. Commands are kept as simple as possible and in most cases will simply need to be copied and pasted into the terminal window (then executed by pressing the Enter key).

Installing UnRAR

To install it, simply log in via SSH then copy and paste the following commands:

wget -qO unrar.tar.gz http://www.rarlab.com/rar/unrarsrc-5.5.8.tar.gz
tar xf ~/unrar.tar.gz
make -C ~/unrar
make -C ~/unrar install DESTDIR="$HOME"
rm -rf ~/unrar{,.tar.gz}

Using UnRAR

You can call UnRAR with unrar - the first thing output should be the version. If it's older than the version you just installed, it's probably that ~/bin isn't in PATH. You can change that by copying and pasting the following via SSH:

echo "PATH=~/bin:$PATH" > ~/.bashrc
source ~/.bashrc


To remove the version of UnRAR installed on your slot, copy and paste the following:

rm ~/bin/unrar