Because, the Linux system built-in without this package needs, we use the source code, added to the system
Installation of RAR Unrar under Linux
Take the 3.8.0 version For example, if it is a 64-bit platform, execute the following command, you can go to the official website:) Download the latest version:
wget http://www.rarlab.com/rar/rarlinux-x64-4.2.0.tar.gz
RAR software does not need to install, directly decompression to/usr/local, the following operations need to have root permissions.
#tar ZXVF rarlinux-x64-4.2.0.tar.gz-c/usr/local
At this point, the/usr/local/rar will have the RAR command and the Unrar command. You can create a connection under/usr/local/bin
Pick up
#ln-S/usr/local/rar/rar/usr/local/bin/rar
#ln-S/usr/local/rar/unrar/usr/local/bin/unrar
Usage: How to use RAR command
A add files to compressed archives
C Add Compressed archive comment (maximum size of note cannot exceed 62000 bytes)
CF Add file notes (maximum 32767 bytes If file notes are displayed when using the ' V ' parameter)
CH Change Compressed file parameters
CW write files to specified file notes
D Delete files from the archive
E Unzip the file to the current directory (do not create any subdirectories)
F Refresh files in the file (update these files since they were packaged, not add new in the compressed file)
I[par]= find specific characters in the file
K Lock file (any command that attempts to change the contents of a compressed file will be ignored)
L[T,B] List Archives [technical, Bare]
M[F] Move to compressed archive [file only]
P print files to standard output
R Patching Compressed Archives
RC Rebuild lost Sub-volume
RN renaming files in compressed archives
RR[N] Adding data recovery records
Rv[n] Create a recovery volume
S[name|-] converting between compressed archives and SFX (self-extracting documents)
T test compressed archive file
U update files in compressed archives
V[T,B] List details of compressed archives [Technical,bare]
x uncompress to full path
Example: rar a anaconda-ks.cfg.rar anaconda-ks.cfg
Unzip the command Unrar using:
$unrar--help
Usage: Unrar--
< @listfiles ...>
< commands >
E Unzip the file to the current directory
L[T,B] List Compressed Document information [technical, bare]
P print files to standard output
T test compression I'm Russian
V[T,B] List details of compressed documents [Technical,bare]
X unzip the file to the full path
[Email protected] ~]# Unrar e anaconda-ks.cfg.rar/home/
Extracting RAR files under Linux