Linux RAR installation and usage

Source: Internet
Author: User

Description: Linux built-in ZIP compression by default. It supports a maximum of 4 GB compression. The RAR compression ratio is greater than 4 GB.
Process: Download, install, and use
-------------------------------------------------- Download
# Wget http://www.rarsoft.com/rar_CN/rarlinux-3.9.3.tar.gz
-- 16:01:50 -- http://www.rarsoft.com/rar_CN/rarlinux-3.9.3.tar.gz
Resolving www.rarsoft.com... 217.70.129.242
Connecting to www.rarsoft.com | 217.70.129.242 |: 80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 833828 (814 K) [application/x-gzip]
Saving to: 'arlinux-3.9.3.tar.gz'

100% [============================================== =>] 833,828 34.5 K/s in 29 s

16:02:22 (28.2 KB/s)-'rarlinux-3.9.3.tar.gz 'saved [833828/833828]

-------------------------------------------------- View the Directory List
# Ls
Rarlinux-3.9.3.tar.gz

------------------------------------------------ Decompress tar.gz
# Tar-xzvf rarlinux-3.9.3.tar.gz
Rar/
Rar/readme.txt
Rar/default. sfx
Rar/whatsnew.txt
Rar/license.txt
Rar/order.htm
Rar/rar
Rar/unrar
Rar/rar_static
Rar/tete.txt
Rar/rarfiles. lst
Rar/makefile
Rar/rar.txt

-------------------------------------------------- View the Directory List
# Ls
Rar
Rarlinux-3.9.3.tar.gz

-------------------------------------------------- Switch the Directory
# Cd rar

------------------------------------------------ Compile the file
# Make
Mkdir-p/usr/local/bin
Mkdir-p/usr/local/lib
Cp rar unrar/usr/local/bin
Cp rarfiles. lst/etc
Cp default. sfx/usr/local/lib

------------------------------------------------ Install the compilation File
# Make install
Mkdir-p/usr/local/bin
Mkdir-p/usr/local/lib
Cp rar unrar/usr/local/bin
Cp rarfiles. lst/etc
Cp default. sfx/usr/local/lib

------------------------------------------------ Execute the rar HELP command
# Rar -- help
Rar:/lib/libc. so.6: version 'glibc _ 100' not found (required by rar)

-------------------------------------------------- Add a Global Command
# Cp-f rar_static/usr/local/bin/rar
Cp: overwrite '/usr/local/bin/rar '? Y

------------------------------------------------ The rar command can be accessed.
# Rar -- help
RAR 3.93 Copyright (c) 1993-2010 Alexander Roshal 15 Mar 2010
Shareware version Type RAR -? For help

Usage: rar <command>-<switch 1>-<switch N> <archive> <files...>
<@ Listfiles...> <path_to_extract \>

<Commands>
X Extract files with full path

------------------------------------------------ Decompress all files, including the path
# Rar x filename.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.