Linux下解压rar压缩文件 打印

  • 0

操作系统:CentOS 7.x

1、下载解压工具包unar

下载地址:

https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/libobjc-4.8.5-44.el7.x86_64.rpm

https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/avahi-libs-0.6.31-20.el7.x86_64.rpm

https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/wavpack-4.60.1-9.el7.x86_64.rpm

https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/nettle-2.7.1-8.el7.x86_64.rpm

https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/trousers-0.3.14-2.el7.x86_64.rpm

https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/gnutls-3.3.29-9.el7_6.x86_64.rpm

https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/g/gnustep-base-libs-1.24.9-1.el7.x86_64.rpm

https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/u/unar-1.10.7-1.el7.x86_64.rpm

上传安装包到/usr/local/src目录

2、安装unar工具包

cd /usr/local/src

rpm -ivh libobjc-4.8.5-44.el7.x86_64.rpm

rpm -ivh avahi-libs-0.6.31-20.el7.x86_64.rpm

rpm -ivh wavpack-4.60.1-9.el7.x86_64.rpm

rpm -ivh nettle-2.7.1-8.el7.x86_64.rpm

rpm -ivh trousers-0.3.14-2.el7.x86_64.rpm

rpm -ivh gnutls-3.3.29-9.el7_6.x86_64.rpm

rpm -ivh gnustep-base-libs-1.24.9-1.el7.x86_64.rpm

rpm -ivh unar-1.10.7-1.el7.x86_64.rpm

#yum源安装

yum install epel-release #需要安装epel源

yum install unar

3、解压rar文件

unar file.rar

#Linux解压缩命令

*.tar.gz后缀 解压命令:tar -zxv -f file.tar.gz

*.gz后缀 解压命令:gzip -d file.gz

*.tar.bz2后缀 解压命令:tar -jxv -f file.tar.bz2

.*bz2后缀 解压命令:bzip2 -d file.bz2

*.zip后缀 解压命令:unar file.zip/unzip file.zip

*.rar后缀 解压命令:unar file.rar

 

 

 


此文章对您是否有帮助?

« 返回