Install RAR for Linux in Linux

Source: Internet
Author: User

RAR for Linux software: http://www.rarsoft.com/download.htm

Up to now, the latest version is 4.10 beta 2, which is a shared version.

The Linux operating system used in this article is:
Centos 5.6, kernel version 2.6.18-238.12.1.el5.pony6.

Select RAR 4.10 Beta 1 for Linux:
$ Wget http://www.rarsoft.com/rar/rarlinux-4.1.b2.tar.gz

For a 64-bit system, use RAR 4.10 beta 2 for Linux x64.

Install with a root account:

$ Su-
# Tar-zxvf rarlinux-4.1.b2.tar.gz
# Cd RAR
# Make
# Make
Install
# Exit

The installation process is complete.

Run rar-help to view the help information. If the following information appears:
# RAR:/lib/tls/libc. so.6: Version
GLIBC_2.4' not found (required by rar)
#rar: /lib/tls/libc.so.6:
version
Glibc_2.7 'not found (required by RAR)

Run the following command:
# Cp-F rar_static/usr/local/bin/RAR

In this way, you can use the RAR command.

**************************************** ******************************

RAR command usage:

Decompress the file:
Decompress the package content to the current directory.
$ RAR e file.rar

Decompress the contents of the compressed package to a specified directory, such as/tmp /.
$ RAR e file.rar/tmp/

Compress the content of the compressed package to a specified directory, such as/tmp/, including the path in the compressed package.
$ RAR x file.rar/tmp/

**************************************** ******************************

Compression:

Compresses a specified document with the default compression ratio, such as sourcefile
$ Rar a file.rar sourcefile

Compresses a specified document with the maximum compression rate, such as sourcefile
$ Rar a-M5 file.rar sourcefile

Compress all documents in a specified directory, such as all documents in the/direcroty directory.
$ Rar a file.rar/direcroty/
# The directory can be relative or absolute

Compress any documents in a specified directory, such as all documents and subdirectories in the/direcroty directory.
$ RAR a-r file.rar
/Direcroty/

Compress all documents in a specified directory, such as all documents and subdirectories in the/direcroty directory, but do not include empty directories.
$ Rar a-R-ed file.rar
/Direcroty/

Compress all documents in a specified directory, such as the direcroty directory under the current directory, and compress the directories together, including subdirectories.
$ Rar a file.rar
Direcroty/

**************************************** ******************************

View the documents in the compressed package:
$ RAR l file.rar or $ RAR v file.rar

View the documents in the compressed package (only see what documents are available)
$ Rar lb file.rar or $ rar vb file.rar

View the documents in the compressed package (details)
$ RAR lt file.rar or $ rar vt file.rar

**************************************** ******************************

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.