Compression, decompression and command application method of installing RAR files in Linux environment

Source: Internet
Author: User
Tags ftp file rar
Yesterday, Chiang helped a friend of the website relocation server, because the entire site's data has more than 10GB size, the friend is also ready to upload files via FTP file, according to the fact that with Aliyun bandwidth 1M calculation, it is estimated that a lot of time to pass through. So I let it pack after the compression package direct transmission, this can also save a little time, wait until spread to about half of the time to see its practical is the RAR compression method, so I know the back to use the RAR decompression mode.

So so We use a zip or tar.gz compression mode in a Linux environment, only our previous win environment used to use RAR only, but it does not matter in Linux we can also operate, but the default environment is not the need for our own to install support RAR and Unrar format compression and decompression, the old Chiang before also Have shared the WDCP panel when the RAR decompression article (here).

First, install RAR compression and decompression environment

1, yum install unrar-y

According to the custom we generally will be tempted to see if the current environment has RAR, Unrar source package, if any can be directly installed. But generally not, so we use the following compilation method.

2. Download according to the version
The code is as follows Copy Code
32 digits: http://soft.itbulu.com/php/rarlinux-5.3.0.tar.gz
64 digits: http://soft.itbulu.com/php/rarlinux-x64-5.4.b2.tar.gz
We have to choose according to their VPS environment is 64 or 32 bits, and then downloaded to the current machine through the wget to the following compilation. For example, I am here to use the 64-bit environment.
The code is as follows Copy Code
wget http://soft.itbulu.com/php/rarlinux-x64-5.4.b2.tar.gz
TAR-ZXVF rarlinux-x64-5.4.b2.tar.gz
CD rar
Make

After compiling, we can use to extract or compress the file.

Second, RAR compression and decompression files

1, Extract files

The code is as follows Copy Code
RAR x Itbulu.com.rar

The red section represents the name of the file that we need to unzip to compress the package.

2, compressed files

The code is as follows Copy Code
RAR a Itbulu.com.rar file
The

Compresses the file folder into a Itbulu.com.rar compressed package.

Summary, the above is a RAR compression and decompression files of the general application, later if you encounter other uses to supplement. However, our general purpose is to compress and decompress, such as adding notes and other operations are rarely used.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.