Home>Article>Operation and Maintenance> 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
64-bit
wget http://www.rarlab.com/rar/rarlinux-x64-5.3.0.tar.gz
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位下载的
to enter the decompressed "rar" folder:
cd rar
Configure:
make
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
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 到当前目录
Compression
rar test.rar ./test/ //将test目录打包为 test.rar
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!