Home > Operation and Maintenance > CentOS > How to decompress rar format files in centos

How to decompress rar format files in centos

王林
Release: 2020-04-03 15:17:58
Original
15528 people have browsed it

How to decompress rar format files in centos

1. Enter the command in the terminal to download the rar software package:

32-bit:

wget http://www.rarsoft.com/rar/rarlinux-4.0.1.tar.gz
Copy after login

64-bit

wget http://www.rarlab.com/rar/rarlinux-x64-5.3.0.tar.gz
Copy after login

Download In the corresponding rar installation package, you can see that there is a clear difference between x64. As for the version number, you can go to the official website and choose it yourself. It can be used anyway.

2. After downloading the installation package, the subsequent operations are the same. First, unzip the installation package: You can view the file name and enter

tar -zxvf rarlinux-4.0.1.tar.gz// 对应32位下载的
tar -zxvf rarlinux-x64-5.3.0.tar.gz// 对应64位下载的
Copy after login

to enter the decompressed "rar" folder:

cd rar
Copy after login

Configure:

make
Copy after login

The installation is successful if the following information appears:

mkdir -p /usr/local/binmkdir -p /usr/local/libcp rar unrar /usr/local/bincp rarfiles.lst /etccp default.sfx /usr/local/lib
Copy after login

3. Use, there are many operations on rar, here we only record the two most commonly used ones of:

Decompression:

rar x test.rar//解压 test.rar 到当前目录
Copy after login

Compression

rar test.rar ./test/ //将test目录打包为 test.rar
Copy after login

Related tutorial recommendations: centos tutorial

The above is the detailed content of How to decompress rar format files in centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template