Centos解压rar压缩文件

在liunx下原本是不支持rar文件的,需要安装liunx下的winrar版本官网下载最近rar解压包。


下载linux系统rar解压工具:

可以通过官网直接下载,通过ftp/sftp等公共传输到linux中,官网:http://www.rarsoft.com

或者tty或者pts执行wget http://www.rarsoft.com/rar/rarlinux-x64-5.4.0.tar.gz

[root@centos7tmp]#wgethttp://www.rarsoft.com/rar/rarlinux-x64-5.4.0.tar.gz
--2017-02-2221:27:21--http://www.rarsoft.com/rar/rarlinux-x64-5.4.0.tar.gz
Resolvingwww.rarsoft.com(www.rarsoft.com)...5.135.104.98
Connectingtowww.rarsoft.com(www.rarsoft.com)|5.135.104.98|:80...connected.
HTTPrequestsent,awaitingresponse...200OK
Length:1156900(1.1M)[application/x-gzip]
Savingto:'rarlinux-x64-5.4.0.tar.gz'
100%[=================================================================================>]1,156,9008.34KB/sin92s
2017-02-2221:28:53(12.3KB/s)-'rarlinux-x64-5.4.0.tar.gz'saved[1156900/1156900]


解压gz文件:

解压命令tar zxvf FileName.tar.gz

压缩tar zcvf FileName.tar.gz DirName

[root@centos7tmp]#tarzxvfrarlinux-x64-5.4.0.tar.gz
rar/
rar/order.htm
rar/ackNow.txt
rar/readme.txt
rar/rar_static
rar/default.sfx
rar/license.txt
rar/rarfiles.lst
rar/whatsnew.txt
rar/makefile
rar/rar
rar/unrar
rar/rar.txt


进入解压以后的rar文件中,执行make命令,显示如下信息则表示安装成功:

[root@centos7rar]#make
mkdir-p/usr/local/bin
mkdir-p/usr/local/lib
cprarunrar/usr/local/bin
cprarfiles.lst/etc
cpdefault.sfx/usr/local/lib


最后发现软件需要收费,还是无法使用。。

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native