标签:
正常rar是windows下的压缩文件,linux是不支持的。但是可以通过安装rarlinux来使用rar命令解压rar文件。
首先下载rarlinux
[root@localhost ~]# 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.gz Resolving rarsoft.com... 5.135.104.98 Connecting to rarsoft.com|5.135.104.98|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 860102 (840K) [application/x-gzip] Saving to: “rarlinux-4.0.1.tar.gz” 100%[==========================================================>] 860,102 11.1K/s in 61s 2015-07-17 23:00:39 (13.8 KB/s) - “rarlinux-4.0.1.tar.gz” saved [860102/860102] [root@localhost ~]# ls anaconda-ks.cfg install.log install.log.syslog rarlinux-4.0.1.tar.gz [root@localhost ~]# man mv [root@localhost ~]# mv rarlinux-4.0.1.tar.gz /home/xingoo/Downloads/ [root@localhost ~]# cd /home/xingoo/Downloads/ [root@localhost Downloads]# ls bxgzldmgsJavaScriptcxdjy(jb51..net).rar kibana-4.1.1-linux-x86.tar.gz bxgzldmgsJavaScriptcxdjy(jb51..net).rar.part libflashplayer.so elasticsearch-1.6.0.tar.gz.part Nodejxjy(jb51.net).rar install_flash_player_11_linux.i386.tar.gz NodeWebkf(jb51.net).rar JavaScriptjcjc(jb51.net).rar rarlinux-4.0.1.tar.gz kibana-4.1.1-linux-x86 [root@localhost Downloads]# tar -zxvf rarlinux-4.0.1.tar.gz rar/ rar/readme.txt rar/default.sfx rar/whatsnew.txt rar/license.txt rar/order.htm rar/rar rar/unrar rar/rar_static rar/technote.txt rar/rarfiles.lst rar/makefile rar/rar.txt [root@localhost Downloads]# ls bxgzldmgsJavaScriptcxdjy(jb51..net).rar kibana-4.1.1-linux-x86.tar.gz bxgzldmgsJavaScriptcxdjy(jb51..net).rar.part libflashplayer.so elasticsearch-1.6.0.tar.gz.part Nodejxjy(jb51.net).rar install_flash_player_11_linux.i386.tar.gz NodeWebkf(jb51.net).rar JavaScriptjcjc(jb51.net).rar rar kibana-4.1.1-linux-x86 rarlinux-4.0.1.tar.gz [root@localhost Downloads]# cd rar [root@localhost rar]# ls default.sfx makefile rar rar_static readme.txt unrar license.txt order.htm rarfiles.lst rar.txt technote.txt whatsnew.txt [root@localhost rar]# make mkdir -p /usr/local/bin mkdir -p /usr/local/lib cp rar unrar /usr/local/bin cp rarfiles.lst /etc cp default.sfx /usr/local/lib [root@localhost rar]# man rar
按照上面的步骤,下载好rarlinux安装包、解压缩、进入文件夹执行make,就可以使用命令了。
标签:
原文地址:http://www.cnblogs.com/xing901022/p/4655891.html