首页 > 代码库 > Centos解压rar压缩文件

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@centos7 tmp]# wget http://www.rarsoft.com/rar/rarlinux-x64-5.4.0.tar.gz
--2017-02-22 21:27:21--  http://www.rarsoft.com/rar/rarlinux-x64-5.4.0.tar.gz
Resolving www.rarsoft.com (www.rarsoft.com)... 5.135.104.98
Connecting to www.rarsoft.com (www.rarsoft.com)|5.135.104.98|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1156900 (1.1M) [application/x-gzip]
Saving to: ‘rarlinux-x64-5.4.0.tar.gz‘
100%[=================================================================================>] 1,156,900   8.34KB/s   in 92s    
2017-02-22 21:28:53 (12.3 KB/s) - ‘rarlinux-x64-5.4.0.tar.gz‘ saved [1156900/1156900]


解压gz文件:

  解压命令tar zxvf FileName.tar.gz 

  压缩命令tar zcvf FileName.tar.gz DirName 

[root@centos7 tmp]# tar zxvf rarlinux-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@centos7 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


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

本文出自 “心有多大” 博客,请务必保留此出处http://qq512430.blog.51cto.com/5955081/1900365

Centos解压rar压缩文件