Hi,
How to Unrar Files in Linux?
Thanks
Hi,
First install unrar tool on your linux box.
Use the following command:
yum install unrar
Here is the output of the command:
myserver [~]# yum install unrar
Reducing Dag ClamAV RPM to included packages only
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
There are unfinished transactions remaining. You mightconsider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package unrar.x86_64 0:4.0.2-1.el5.rf set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
Package Arch Version Repository Size
Installing:
unrar x86_64 4.0.2-1.el5.rf dag 113 k
Transaction Summary
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 113 k
Is this ok [y/N]: y
Downloading Packages:
unrar-4.0.2-1.el5.rf.x86_64.rpm | 113 kB 00:00
Running rpmcheckdebug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : unrar [1/1]
Installed: unrar.x86_64 0:4.0.2-1.el5.rf
Complete!
myserver [~]# unrar
UNRAR 4.00 beta 2 freeware Copyright (c) 1993-2010 Alexander Roshal
Usage: unrar
<@listfiles...> <path_to_extract\>
<Commands>
e Extract files to current directory
l[t,b] List archive [technical, bare]
p Print file to stdout
t Test archive files
v[t,b] Verbosely list archive [technical,bare]
x Extract files with full path
<Switches>
Stop switches scanning
ad Append archive name to destination path
ai Ignore file attributes
ap
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
dh Open shared files
ep Exclude paths from names
ep3 Expand paths to full including the drive letter
f Freshen files
id[c,d,p,q] Disable messages
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
n
n@ Read file names to include from stdin
n@ Include files listed in specified list file
o[+|-] Set the overwrite mode
or Rename files automatically
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
sl
sm
ta
tb
tn
to
ts
u Update files
v List all volumes
ver[n] File version control
vp Pause before each volume
x
x@ Read file names to exclude from stdin
x@ Exclude files listed in specified list file
y Assume Yes on all queries
myserver [~]# cd /backup/
Hi,
then use the following command to unrar file:
unrar e myfile.rar
Thanks
Ads