CentOS installation RAR

Source: Internet
Author: User

CentOS installation RAR

On windows, there is a convenient rar compression and decompression tool. In linux, whether as a PC or server, sometimes some rar compressed packages will be downloaded, we need to decompress it. By default, linux does not support rar. We need to install it separately. Therefore, we search for rar tools online. the following URL can download WinRAR, a well-known tool.

  • 1

We need to select the corresponding version based on our operating system and language. The default version is English. I chose a 64-bit installation package. After the download is complete, we will see the installation work.

// Under the Download directory of the current user [closure @ localhost Downloads] $ // view the downloaded installation package [closure @ localhost Downloads] $ lsrarlinux-x64-5.2.1.tar.gz // This is the installation package we downloaded // unzip installation Package [closure @ localhost Downloads] $ tar-zxvf rarlinux-x64-5.2.1.tar.gz // extract the installation package rar/order.htm rar/acknow.txt rar/readme.txt rar/rar_staticrar/default. sfxrar/license.txt rar/rarfiles. lstrar/whatsnew.txt rar/makefilerar/rarrar/unrarrar/rar.txt // enter the decompressed file directory [closure @ l Ocalhost Downloads] $ cd rar // compilation and installation (permission error will be reported if sudo is not used) [closure @ localhost rar] $ sudo make [sudo] password for closure: mkdir-p/usr/local/binmkdir-p/usr/local/libcp rar unrar/usr/local/bincp rarfiles. lst/etccp default. sfx/usr/local/lib // check whether rar has been installed successfully. [closure @ localhost rar] $ rar // The Information and usage of rar are listed here, which is skipped here, as you can see, there are many commands, and we only need to know the common operations.
  • 1
  • 2
  • 3

Through the above operations, we have installed the rar tool. The following describes several common usage (command form ):

  • Compress files and folders to a specified compressed package and save the original files.
rar a package.rar files...
  • 1

For details, compress files to package.rar. files can include files and directories and keep the original files.

  • Compress the file. After compression, delete the original file.
rar m package.rar files...

For details, the m command is only valid for files and is invalid for folders. If files contains folders, no processing is performed on the folders.

  • Decompress the package
rar x package.rar  [dir]

For details, keep the document structure unchanged under the same directory as the others.

  • More operation methods can be obtained through the rar command

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.