Linux rar Installation

Source: Internet
Author: User
Tags rar

Description: Linux default comes with zip compression, the maximum support 4GB compression, RAR compression ratio is greater than 4GB.
Process: Download "Install" use
--------------------------------------------------Download
# wget http://www.rarsoft.com/rar/rarlinux-x64-5.2.1b1.tar.gz
--16:01:50--http://www.rarsoft.com/rar/rarlinux-x64-5.2.1b1.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 ... OK
length:833828 (814K) [Application/x-gzip]
Saving to: ' rarlinux-x64-5.2.1b1.tar.gz '

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

16:02:22 (28.2 kb/s)-' rarlinux-x64-5.2.1b1.tar.gz ' saved [833828/833828]

--------------------------------------------------View a list of directories
# ls
Rarlinux-3.9.3.tar.gz

--------------------------------------------------Decompression tar.gz
# TAR-XZVF Rarlinux-x64-5.2.1b1.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/technote.txt
Rar/rarfiles.lst
Rar/makefile
Rar/rar.txt

--------------------------------------------------View a list of directories
# ls
rar
Rarlinux-x64-5.2.1b1.tar.gz

--------------------------------------------------Switch Directories
# CD RAR

--------------------------------------------------Compiling files
# 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 compiled files
# 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 RAR help command
# rar--help
RAR:/lib/libc.so.6:version ' glibc_2.7 ' not found (required by RAR)

--------------------------------------------------Add global commands
# 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 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

--------------------------------------------------unzip all files including path
# rar x Filename.rar

Transfer from http://www.cnblogs.com/mfryf/archive/2012/05/22/2513679.html

Linux rar Installation

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.