Today, I’got some file .rar from my friend. But I simply can not extract it. I tough I can use unzip. Then I realize I must using unrar, this kind of archive is different with .zip.
In order, to install unrar, you must download rpm first.
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
Then, install the package
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
After install the package, now you can install unrar.
# yum install unrar
Of course you must execute command above as root. How to extract? To open/extract a RAR file with their original directory structure, just issue command with unrar x option.
# unrar x somefile.rar
See manual for full hint 😀 This step work on RHEL6.