Information Computer

Sunday, July 31, 2011

Install Rar for Linux

for this time I did not explain on how to install WinRar in Linux. but this time I only discuss about how to install linux command line you can use to manage your Rar files. by using software that is often called rarlinux.

you can download rarlinux in http://www.rarlab.com/rar/rarlinux-4.0.1.tar.gz. how to install as follows.

  1. extract rarlinux-4.0.1.tar.gz anywhere up to you.  
  2. open terminal.
  3. change directory to extract the folder. example : cd /home/husnu/rar.
  4. typing "sudo su" to login into root - insert your root password.
  5. typing "make install rar".
  6. finish.

to use rarlinux you can use the command below.

rar <command> -<switch 1> -<switch N> <archive> <files...> <@listfiles...> <path_to_extract\>

note the information in the table below

<command>

CommandExplanation
aAdd files to archive
cAdd archive comment
cf Add files comment
ch Change archive parameters
cw Write archive comment to file
dDelete files from archive
eExtract files to current directory
fFreshen files in archive
i[par]=<str> Find string in archives
k Lock archive
l[t,b] List archive [technical, bare]
m[f] Move to archive [files only]
pPrint file to stdout
rRepair archive
rcReconstruct missing volumes
rn Rename archived files
rr[N]Add data recovery record
rv[N]Create recovery volumes
s[name|-] Convert archive to or from SFX
tTest archive files
uUpdate files in archive
v[t,b] Verbosely list archive [technical,bare]
xExtract files with full path

<switch>

SwitchExplanation
-Stop switches scanning
adAppend archive name to destination path
ag[format]Generate archive name using the current date
aiIgnore file attributes
ap<path>Set path inside archive
asSynchronize archive contents
avPut authenticity verification (registered versions only)
av-Disable authenticity verification check
c-Disable comments show
cfg-Disable read configuration
clConvert names to lower case
cuConvert names to upper case
dfDelete files after archiving
dhOpen shared files
dsDisable name sort for solid archive
dwWipe files after archiving
e[+]<attr>Set file exclude and include attributes
edDo not add empty directories
enDo not put 'end of archive' block
epExclude paths from names
ep1Exclude base directory from names
ep3Expand paths to full including the drive letter
fFreshen files
hp[password]Encrypt both file data and headers
id[c,d,p,q]Disable messages
ierrSend all messages to stderr
ilog[name]Log errors to file (registered versions only)
inulDisable all messages
isndEnable sound
kLock archive
kbKeep broken extracted files
m<0..5>Set compression level (0-store...3-default...5-maximal)
mc<par>Set advanced compression parameters
md<size>Dictionary size in KB (64,128,256,512,1024,2048,4096 or A-G)
ms[ext;ext]Specify file types to store
n<file>Include only specified file
n@Read file names to include from stdin
n@<list>Include files listed in specified list file
o[+|-]Set the overwrite mode
olSave symbolic links as the link instead of the file
orRename files automatically
owSave or restore file owner and group
p[password]Set password
p-Do not query password
rRecurse subdirectories
r-Disable recursion
r0Recurse subdirectories for wildcard names only
rr[N]Add data recovery record
rv[N]Create recovery volumes
s[<N>,v[-],e] Create solid archive
s-Disable solid archiving
sc<chr>[obj] Specify the character set
sfx[name]Create SFX archive
si[name]Read data from standard input (stdin)
sl<size>Process files with size less than specified
sm<size>Process files with size more than specified
tTest files after archiving
ta<date>Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date>Process files modified before <date> in YYYYMMDDHHMMSS format
tkKeep original archive time
tlSet archive time to latest file
tn<time>Process files newer than <time>
to<time>Process files older than <time>
ts<m,c,a>[N] Save or restore file time (modification, creation, access)
uUpdate files
vCreate volumes with size autodetection or list all volumes
v<size>[k,b] Create volumes with size=<size>*1000 [*1024, *1]
ver[n]File version control
vnUse the old style volume naming scheme
vpPause before each volume
w<path>Assign work directory
x<file>Exclude specified file
x@Read file names to exclude from stdin
x@<list>Exclude files listed in specified list file
yAssume Yes on all queries
z[file]Read archive comment from file

example : rar -x /home/husnu/template.rar /home/husnu.
if you do not understand about linux basic command. you can read here. thank :)

Related Posts



Followers