¿Pero tu sabes programar? Veo que estas con un servidor CentOS o RedHat.
Si lo que quieres es hacerlo desde consola...
How to use unrar
unrar command supports various options below are common options that you need to use everyday.
Task: To open rar (unpack) file in current directory type command:Please note that replace file.rar filename with your actual filename.
Task: List (l) file inside rar archive:Task: To extract (x) files with full path type command:(D) To test (t) integrity of archive, file type command:Fuente: http://www.cyberciti.biz/faq/open-rar-file-or-extract-rar-files-under-linux-or-unix/