How to Unrar in Linux?



Share on Google+Share on Google+

Deepak Kumar
How to Unrar in Linux?
2 Answer(s)      6 years and 9 months ago
Posted in : Development process


How to Unrar Files in Linux?


View Answers

January 23, 2011 at 2:36 PM


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


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


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


myserver [~]# unrar

UNRAR 4.00 beta 2 freeware Copyright (c) 1993-2010 Alexander Roshal

Usage: unrar - -

           <@listfiles...> <path_to_extract\>


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


  • Stop switches scanning

    ad Append archive name to destination path

    ai Ignore file attributes

    ap Set path inside archive

    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 Include only specified file

    [email protected] Read file names to include from stdin

    [email protected] 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 Process files with size less than specified

    sm Process files with size more than specified

    ta Process files modified after in YYYYMMDDHHMMSS format

    tb Process files modified before in YYYYMMDDHHMMSS format



    ts[N] Save or restore file time (modification, creation, access)

    u Update files

    v List all volumes

    ver[n] File version control

    vp Pause before each volume

    x Exclude specified file

    [email protected] Read file names to exclude from stdin

    [email protected] Exclude files listed in specified list file

    y Assume Yes on all queries

myserver [~]# cd /backup/

January 23, 2011 at 2:37 PM


then use the following command to unrar file:

unrar e myfile.rar