Normal RAR is a compressed file under Windows, Linux is not supported. However, you can use the RAR command to extract RAR files by installing Rarlinux.
First download Rarlinux
[[email protected] ~]# wget http://rarsoft.com/rar/rarlinux-4.0.1.tar.gz--2015-07-17 22:59:37--http://rarsoft.com/rar/rarlinux-4.0.1.tar.gzResolving rarsoft.com ... 5.135.104.98Connecting to rarsoft.com|5.135.104.98|:80... connected. HTTP request sent, awaiting response ...200oklength:860102 (840K) [application/x-Gzip] Saving to: "Rarlinux-4.0.1. tar.gz "100%[==========================================================>] 860,102 11.1k/s in 61s2015-07-17 23:00:39 (13.8 kb/s)-"rarlinux-4.0.1.tar.gz" saved [860102/860102][[email protected]~]# Lsanaconda-ks.cfg Install.log Install.log.syslog rarlinux-4.0.1. Tar.gz[[email protected]~]# man Mv[[email protected]~]# MV rarlinux-4.0.1.tar.gz/home/xingoo/downloads/[[Email protected]~]# cd/home/xingoo/downloads/[email protected] downloads]# lsbxgzldmgsjavascriptcxdjy (jb51. NET). rar Kibana-4.1.1-linux-X86.tar.gzbxgzldmgsJavaScriptcxdjy (jb51. NET). Rar.part Libflashplayer.soelasticsearch-1.6.0. Tar.gz.part nodejxjy (jb51.net). rarinstall_flash_player_11_linux.i386.tar.gz nodewebkf (jb51.net). rar JAVASCRIPTJCJC (jb51.net). rar rarlinux-4.0.1. Tar.gzkibana-4.1.1-linux-x86[[email protected] downloads]# tar-ZXVF rarlinux-4.0.1. tar.gz rar/rar/Readme.txtrar/default. Sfxrar/Whatsnew.txtrar/License.txtrar/Order.htmrar/Rarrar/Unrarrar/Rar_staticrar/Technote.txtrar/Rarfiles.lstrar/Makefilerar/Rar.txt[[email protected] downloads]# lsbxgzldmgsjavascriptcxdjy (jb51.. NET). rar Kibana-4.1.1-linux-X86.tar.gzbxgzldmgsJavaScriptcxdjy (jb51. NET). Rar.part Libflashplayer.soelasticsearch-1.6.0. Tar.gz.part nodejxjy (jb51.net). rarinstall_flash_player_11_linux.i386.tar.gz nodewebkf (jb51.net). rar JAVASCRIPTJCJC (jb51.net). rar Rarkibana-4.1.1-linux-x86 rarlinux-4.0.1. Tar.gz[[email protected] downloads]# CD rar[[email protected] rar]# lsdefault. SFX makefile rar rar_static readme.txt unrarlicense.txt order.htm rarfiles.lst rar.txt Techno Te.txt Whatsnew.txt[[email protected] rar]# makemkdir-p/usr/local/Binmkdir-p/usr/local/libcp rar Unrar/usr/local/BINCP Rarfiles.lst/ETCCPdefault. sfx/usr/local/Lib[[email protected] rar]# man rar
Follow the steps above to download the Rarlinux installation package, unzip it, go to the folder to execute make, and use the command.
Extracting RAR files under Linux