STEP 1. Login into your server via SSH as root and type this in the terminal
yum install rar unrar
STEP 2. Find Out whether your system is 32Bit or 64bit by typing this to the SSH client:
Then look for this:
If u see i686 GNU/Linux , your system is 32bit
If u see x86_64 GNU/Linux , your system is 64bit
STEP 3. Download required winrar version from rarlab
For 32bit : http://www.rarlab.com/rar/rarlinux-4.1.b3.tar.gz
For 64bit : http://www.rarlab.com/rar/rarlinux-x64-4.1.b3.tar.gz
STEP 4. Extract the files and upload all content to rar folder on your server.
BOTH RAR FOLDER AND THE FILES IN IT MUST BE Chmod to 777 permission.
If you are still getting errors like:
unrar: /lib/libc.so.6: version `GLIBC_2.7′ not found (required by unrar)
Then go to the rar folder and delete “rar” file –> then rename rar_static to rar.