Download binary package from official rarlab site:
Untar file
Both unrar and rar commands are located in rar sub-directory. Just go to rar directory:
Now copy rar and unrar to /bin directory:
Please note that replace file.rar filename with your actual filename.
(D) To test (t) integrity of archive, file type command:
$ cd /tmp
$ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz Untar file
$ tar -zxvf rarlinux-3.6.0.tar.gzBoth unrar and rar commands are located in rar sub-directory. Just go to rar directory:
$ cd rar
$ ./unrarNow copy rar and unrar to /bin directory:
# cp rar unrar /binHow 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:
$ unrar e file.rarPlease note that replace file.rar filename with your actual filename.
Task: List (l) file inside rar archive:
$ unrar l file.rarTask: To extract (x) files with full path type command:
$ unrar x file.rar(D) To test (t) integrity of archive, file type command:
$ unrar t file.rarSource: http://www.cyberciti.biz/faq/open-rar-file-or-extract-rar-files-under-linux-or-unix/