Open RAR File / Extract RAR Files Under Linux or UNIX

How do I open rar archive files under a Linux or UNIX or macOS X operating system?

RAR files are in compressed archive format, if you have downloaded rar files from the Internet, you need to unpack or unrar them (extract rar files). RAR is a proprietary file format for data compression and archiving, developed by Eugene Roshal. [donotprint]
Tutorial details
DifficultyEasy (rss)
Root privilegesYes
RequirementsNone
Time5m
[/donotprint]The command used to extract these files is called “unrar”. By default, unrar is not being installed on Linux, FreeBSD or UNIX like operating system. You can install unrar command with the help of apt-get or yum command. (See below for Windows XP / 7 unrar infomation.)

ADVERTISEMENTS

Install unrar command

If you are using a Debian or Ubuntu Linux, you need to type apt-get command or apt command as follows to install unrar program:
$ sudo apt-get install unrar
OR
$ sudo apt install unrar
If you are using a CentOS / RHEL, use the yum command as follows (see discussion below for more):
# yum install unrar
If you are using Fedora Linux, use the dnf command:
$ sudp dnf install unrar
If you are using FreeBSD Unix, use the pkg command:
# pkg install unrar
If you are using OpenBSD Unix, use the pkg_add command:
# pkg_add -v unrar
If you are using macOS Unix and Homebrew, use the brew command:
$ brew install unrar
If any of above, methods is not working for your version of Unix/Linux, download binary package from official rarlab site:
$ cd /tmp
## 32 bit linux ##
$ wget https://www.rarlab.com/rar/rarlinux-5.5.0.tar.gz

OR for 64 bit Linux version:
$ wget http://www.rarlab.com/rar/rarlinux-x64-5.3.b4.tar.gz
Next, untar the file with tar command, enter:
$ tar -zxvf rarlinux-*.tar.gz
Both unrar and rar commands are located in rar sub-directory. Just cd to rar directory, type:
$ cd rar
$ ./unrar

Now copy rar and unrar file to /usr/local/bin directory, type:
$ sudo cp rar unrar /usr/local/bin

How to use unrar Command

The unrar command supports various options, below are common options that you need to for extracting files.

Task: Extract rar (unpack) File

To extract file.rar file into the current directory, enter:
$ unrar e file.rar
Sample outputs:

UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal
 
 
Extracting from file.rar
 
Extracting  adduser.conf                                              OK 
Extracting  apg.conf                                                  OK 
Extracting  appstream.conf                                            OK 
Extracting  brltty.conf                                               OK 
Extracting  ca-certificates.conf                                      OK 
Extracting  sensors3.conf                                             OK 
Extracting  sysctl.conf                                               OK 
All OK

Task: List (l) file inside rar archive:

$ unrar l file.rar

List all files stored inside a rar archive

List all files stored inside a rar archive

Task: To extract (x) files with full path type command:

$ unrar x file.rar
Sample outputs:

UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal
 
 
Extracting from file.rar
 
Creating    etc                                                       OK
Extracting  etc/adduser.conf                                          OK 
Extracting  etc/apg.conf                                              OK 
Extracting  etc/appstream.conf                                        OK 
Extracting  etc/brltty.conf                                           OK 
Extracting  etc/ca-certificates.conf                                  OK 
Extracting  etc/sensors3.conf                                         OK 
Extracting  etc/sysctl.conf                                           OK 
All OK

To test (t) integrity of archive, file type command:

$ unrar t file.rar
Sample outputs:

UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal
 
 
Testing archive file.rar
 
Testing     etc/adduser.conf                                          OK 
Testing     etc/apg.conf                                              OK 
Testing     etc/appstream.conf                                        OK 
Testing     etc/brltty.conf                                           OK 
Testing     etc/ca-certificates.conf                                  OK 
Testing     etc/sensors3.conf                                         OK 
Testing     etc/sysctl.conf                                           OK 
All OK

Getting help about unrar command

Type the following command:
$ man unar
OR
$ unrar | more
Sample outputs:

unrar
 
UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal
 
Usage:     unrar <command> -<switch 1> -<switch N> <archive> <files...>
               <@listfiles...> <path_to_extract\>
 
<Commands>
  e             Extract files without archived paths
  l[t[a],b]     List archive contents [technical[all], bare]
  p             Print file to stdout
  t             Test archive files
  v[t[a],b]     Verbosely list archive contents [technical[all],bare]
  x             Extract files with full path
 
<Switches>
  -             Stop switches scanning
  @[+]          Disable [enable] file lists
  ad            Append archive name to destination path
  ag[format]    Generate archive name using the current date
  ai            Ignore file attributes
  ap<path>      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<file>       Additionally filter included files
  n@            Read additional filter masks from stdin
  n@<list>      Read additional filter masks from list file
  o[+|-]        Set the overwrite mode
  ol[a]         Process symbolic links as the link [absolute paths]
  or            Rename files automatically
  ow            Save or restore file owner and group
  p[password]   Set password
  p-            Do not query password
  r             Recurse subdirectories
  sc<chr>[obj]  Specify the character set
  sl<size>      Process files with size less than specified
  sm<size>      Process files with size more than specified
  ta<date>      Process files modified after <date> in YYYYMMDDHHMMSS format
  tb<date>      Process files modified before <date> in YYYYMMDDHHMMSS format
  tn<time>      Process files newer than <time>
  to<time>      Process files older than <time>
  ts[m|c|a]     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<file>       Exclude specified file
  x@            Read file names to exclude from stdin
  x@<list>      Exclude files listed in specified list file
  y             Assume Yes on all queries

How do I open rar file under MS-Windows XP/NT/2000/7/8/10?

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
158 comments… add one
  • ajos1 Feb 21, 2006 @ 0:49

    On my Redhat FC4… says there is no unrar or rar… does this package go under a different name?

    [root@www ~]# yum install unrar
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Parsing package install arguments
    No Match for argument: unrar
    Nothing to do

  • 🐧 nixcraft Feb 21, 2006 @ 8:18

    Fedora user should just run:
    $ sudo dnf install unrar

  • joe Dec 27, 2006 @ 16:23

    nixcraft – that dag repo is giving a 404:
    Setting up repositories
    dag [1/4]
    http://apt.sw.be/fedora/5/en/i386/dag/repodata/repomd.xml: [Errno 14] HTTP Error 404: Date: Wed, 27 Dec 2006 16:22:50 GMT

  • 🐧 nixCraft Dec 27, 2006 @ 18:00

    Joe,

    Grab unrar/rar software from https://www.rarlab.com/download.htm install the same. Type the following commands as root user:
    cd /tmp
    ## 32 bit linux ##
    wget https://www.rarlab.com/rar/rarlinux-5.5.0.tar.gz
    tar -zxvf rarlinux-5.5.0.tar.gz
    cd rar
    sudo cp -v rar unrar /usr/local/bin/
    ## 64 bit linux ##
    wget https://www.rarlab.com/rar/rarlinux-x64-5.5.0.tar.gz
    tar -zxvf rarlinux-x64-5.5.0.tar.gz
    cd rar
    sudo cp -v rar unrar /usr/local/bin/

    Now you can use them as per your needs.

    Now you can use rar and unrar

    • raja Aug 7, 2010 @ 11:19

      thanx nix, now i am able to open rar fies

    • Uwan Aug 12, 2010 @ 6:01

      Thank u very much brother.
      I get new idea as linux user.
      Thank u again lot.

    • kyoTunderke Mar 8, 2011 @ 15:50

      Thanx, you solved my two-months-problem <3

    • Saurabh Dubey Jul 25, 2015 @ 16:12

      Thanks a lot nixCraft

  • Eliade Jan 2, 2007 @ 13:03

    Hi nix, well how to handle *.lzh file on linux?
    I want to extract it….

  • 🐧 nixCraft Jan 2, 2007 @ 17:28

    Eliade,

    Files with .lzh or .lha extensions have been compressed with the LHa, LHarc, or LHx compression utilities. You need to use lha command.

    lha x file.lhz

    Download link
    https://fragglet.github.io/lhasa/

    Hope this helps

  • Ranjan Feb 5, 2007 @ 16:19

    Thanq.This info is exactly matched my requirement.

  • Arun Feb 7, 2007 @ 14:14

    hey nixcraft thanks for the info.. :)
    really helpful

  • Mike Feb 7, 2007 @ 21:17

    This is just what I have been looking for, thanks!

  • Daniel Feb 26, 2007 @ 12:48

    when i try and use unrar i get the following error:

    unrar: /lib/tls/libc.so.6: version `GLIBC_2.4′ not found (required by unrar)

    how do i fix this? can someone perhaps kindly point me to another article or some instructions? thank you!

  • 🐧 nixCraft Feb 26, 2007 @ 13:50

    Daniel,

    What distro you are using? You need to have updated version of GLIBC.

  • pranjal karwal Mar 17, 2007 @ 6:20

    thanks dude it works! thanku for such an easy guide :)

  • AudioTravel Mar 29, 2007 @ 12:58

    That worked great for me. I think there might be a typo in the posting. I am using Centos Linux, so I thought I’d post what exactly I did:

    •wget
    •rpm -Uvh unrar-3.6.2-1.el4.rf.i386.rpm
    •unrar e rarfile.rar

    Cheers,
    Richard

  • Alex Apr 3, 2007 @ 7:56

    Thanks nixcraft for your nice guide, worked like a charm.

  • Blind Apr 8, 2007 @ 2:11

    How am i suppose to run these commands? Sorr

  • Margaux May 24, 2007 @ 9:52

    How do I fix this error

    Cannot find volume GA_-_S2E13_-_Begin_The_Begin.part2.rar
    Grey’s Anatomy – Season 2 – Episode 13 – Begin The Begin.avi – CRC failed
    Total errors: 1

    i’m very sure that i’ve downloaded it and it is in my Desktop…

    Thanks!

  • sleestak Jul 19, 2007 @ 16:18

    Thanks for providing this info. Very helpful.

  • Ritu Aug 2, 2007 @ 10:49

    cd /tmp
    wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz
    tar -zxvf rarlinux-3.6.0.tar.gz
    cd rar
    cp rar unrar /bin

    but the result is
    $ ./unrar
    ./unrar: /lib/tls/libc.so.6: version `GLIBC_2.4′ not found (required by ./unrar)

    can any one tell me what is the problem?

    • Arildm Apr 20, 2012 @ 12:29

      What distro you are using? You need to have updated version of GLIBC.

  • Tushar Tandulkar Aug 10, 2007 @ 16:40

    Very nice help for unrar, thanks

  • Pavan Kumar Aug 23, 2007 @ 13:14

    Thanks Man.. The Unrar stuff works pretty nice.

  • Vikas Aug 29, 2007 @ 8:46

    Thanks

  • Alex Sep 18, 2007 @ 14:38

    There is a program – RAR fix, able can extract information even from those compressed files that are protected with a password, works with all variants of this format and can recover data from archives and corrupt rar files with various compression rates and created in different software.

  • nmuthukumar Sep 21, 2007 @ 14:57

    Here but it asks password to open the file

  • biswajit deka Sep 27, 2007 @ 5:20

    hi, am using fedora linux and not able to install unrar using yum install unrar
    it shows an error as No Match Argument rar.
    please help me out of this.

  • Janis Oct 10, 2007 @ 17:12

    I’ve heard you could also use 7zip to extract RAR files under *nix. That might be easier for some than using the method described in this post.

  • matt Oct 11, 2007 @ 21:35

    need some help with extracting .rar files on feisty fawn

  • alex Oct 15, 2007 @ 18:52

    Hey thanks!

  • kldfsj Nov 7, 2007 @ 0:29

    you can use Winrar with WINE – you can decompress and create archives with and without password etc. You will get nag screen in 30 days but it will work further

  • arif Nov 18, 2007 @ 9:16

    apt-get install unrar doesn’t work for debian.
    For debian apt-get install unrar-free

    Enjoy
    Arif Meraj
    Unix Administrator
    Therapbd

  • Mishu Nov 24, 2007 @ 2:36

    Installation For Suse 10 users:
    # su
    # yast2 -i unrar

  • doctor mapache Jan 3, 2008 @ 20:36

    For Ubuntu users (I’m using 7.10) you can find it in the Synaptic package handler menu.
    Sorry for the translation if it is not accurate, I have the menu in Spanish.

  • Azura Jan 10, 2008 @ 3:23

    Very helpful. I downloaded the binary package and followed the subsequent commands…

    It works on Slackware, Yay! ^__^

  • simo Jan 25, 2008 @ 10:19

    Hello when i execute ./rar i got this error

    -bash-3.00# ./unrar
    ./unrar: /lib/tls/libc.so.6: version `GLIBC_2.4′ not found (required by ./unrar)
    -bash-3.00#

    any body can provid a help ,

    Thanks

  • anand Feb 1, 2008 @ 22:47

    Hi,

    I was getting same error.

    I installed rar and unrar through rpm and its working fine.
    rpm -ivh ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el3/en/i386/dag/RPMS/unrar-3.6.2-1.el3.rf.i386.rpm
    rpm -ivh ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el3/en/i386/dag/RPMS/unrar-3.6.2-1.el3.rf.i386.rpm

  • Carmel Feb 12, 2008 @ 14:42

    If you are searching for a GUI utility to extract and handle rar files with, there is PeaZip for Linux which comes handy:
    http://www.peazip.org/

    It runs both in Gnome and in KDE and is available as DEB and RPM.

  • Free Wallpapers Feb 16, 2008 @ 3:14

    Great post!

    Thank you!

  • Varaonaid Feb 18, 2008 @ 22:06

    Carmel…thanks *so* much for the ifno re: peazip. I’m much more comfortable with a GUI and it was exactly was I was looking for. Worked perfectly! :)

  • MSK Feb 19, 2008 @ 8:26

    very useful one..

  • rash Mar 14, 2008 @ 8:37

    I downloaded unrar successfully but i get an error when i try to open the file thats compressed. the error is:
    Warning:You need to start extraction from a previous volume to unpack file.wmv
    No files to extract

  • rash Mar 14, 2008 @ 9:19

    I forgot to mention i a am using sidux [debian] live CD!

  • Questioner Mar 25, 2008 @ 19:13

    How?
    file.001
    file.002

    file.par2

    Possible?

  • ilke Apr 10, 2008 @ 12:08

    thanx Mishu, nice to see Suse has a support here, i searched for long time… i will give a try tomorrow morning.

    Mishu Says:
    November 24th, 2007 at 2:36 am
    Installation For Suse 10 users:
    # su
    # yast2 -i unrar

  • igor May 12, 2008 @ 3:27

    cd /tmp
    wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz
    tar -zxvf rarlinux-3.6.0.tar.gz
    cd rar
    cp rar unrar /bin

    when i put the last command it says:
    cp: cannot create regular file `/bin/rar’: Permission denied
    cp: cannot create regular file `/bin/unrar’: Permission denied

    what do i do?

  • 🐧 nixCraft May 12, 2008 @ 8:32

    igor,

    Run last two command as a superuser (root).

  • igor May 12, 2008 @ 23:28

    vivek sorry i am new to this linux thing would you be able to tell me what exactly do i tyoe in the terminal? like the last two command you said with superuser but how do i write that? thank you very much i appreciate it.

  • Vladimir May 13, 2008 @ 6:41

    run “su -” and enter your root password, then issue your commands and you should receive no errors

  • charlymanja May 30, 2008 @ 17:52

    thanks, it really works on fedora 8, keep blogging

  • Abhishek Jun 2, 2008 @ 6:24

    Thanks!;)

  • vinodh Jun 10, 2008 @ 9:02

    thanks a lot

  • Sergey Jun 13, 2008 @ 19:18

    # apt-get install unrar

    It’s not work :(


    Reading package lists… Done
    Building dependency tree… Done
    Package unrar is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package unrar has no installation candidate

    Please, help (((

  • celleke Jul 10, 2008 @ 7:31

    Help, all those tools rar, peazip etc are very nice to use. But how can I extract a spawned rar archive?
    Called *.rar, *.001 …
    Thanks

  • CodeLab Jul 19, 2008 @ 0:25

    Thanks For The Very Good Description Here
    It Worked Perfect For Me.
    One Question
    How Do I Extract Password Protected Rars
    I Mean, I Have The Password, But How Do I Specify It In Command Line.
    Need Syntax For That

  • CodeLab Jul 19, 2008 @ 0:29

    @celleke
    Its Called Multi-Part Rars
    You Dont Have To Do Anything Different For That
    Heres The Ex.
    unrar e file.part01.rar

    unrar Looks For All The, I Tried And It Worked
    file.partxx.rar and Extracts It For You
    Hope It Helps

  • 🐧 nixCraft Jul 19, 2008 @ 4:35

    Try

    unrar e -p{password} file.rar
    unrar e -pmySecrete demogame.rar

  • bill Jul 21, 2008 @ 11:16

    has anyone a solution for that GLIBC problem?
    although the libc.so.6 exists and has 777 the error appears, complete libc6 is installed. machine: debian7 minimal from netinst cd. thanks-a-lot!

  • DSpider Jul 30, 2008 @ 14:47

    Same problem on Debian Etch…

    unrar: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.4′ not found (required by unrar)

    This problem seems to pretty old… Dating back to 2007 (and even older). No-one came with a solution… I’m starting to think this Linux shit isn’t the OS for me :| Windows is easyer. So what if 99% of all viruses are made for Windows ? Ignorance is fucking biss…

  • bill Jul 31, 2008 @ 6:43

    Everything is easy as long as you know what you’re doing ;-)
    Windows ain’t easy. It’s frightening -> You don’t what what IT does ;-)))

  • S. Nilesh Jul 31, 2008 @ 12:31

    There is something simply called ‘rar’ which uncompress AS WELL AS compress. That means you can create, read, modify RAR archives. Its free. I don’t know about its license.

  • bill Jul 31, 2008 @ 12:41

    aha, and where to get? googleing for “rar” could be difficult :-D

  • 🐧 nixCraft Jul 31, 2008 @ 12:55

    Bill,

    Type the following commands as root:
    apt-get update
    apt-get upgrade
    apt-get update unrar

    Here is output from my system:
    cat /etc/debian_version
    4.0
    unrar
    If you need further assistance please feel free to use our forum as thread discussion is supported very well..

  • S. Nilesh Jul 31, 2008 @ 16:10

    Bill,

    it is available for Fedora in freshrpms. I don’t about Debian based distros.

  • Vovanuch Aug 17, 2008 @ 2:36

    It works, thanks a lot.
    Unrar and 7zip too. I install win-made version of 7zip (it was in my win distr’s collection) under WINE and it works great.

  • shashank Sep 10, 2008 @ 19:08

    Hey!
    Its a very informative site and i am glad i was able to sort the some problems i was facing with the .rar extension.
    Thanks a lot
    Lambofgod

  • Panik86 Sep 19, 2008 @ 5:20

    i have been haveing trouble unzipping a file, i have tried everything, someone plz help me, email is motterboy20@yahoo.com
    When i try to unzip my rar file directly by right clicking and saying extract here, i get this /bin/sh: /bin/rar: cannot execute binary file and when i open the terminal in the same directory this is what it says [root@localhost Panik]# unrar diablo.rar]
    bash: /bin/unrar: cannot execute binary file i dunno if im using the wrong command, i have rtyed alot, but nothing works, btw im using yellowdog 6 and io have installed unrar.

  • sanzilla Oct 8, 2008 @ 5:04

    the APT method is not working under the debain

    #apt-get install unrar

  • Karen Nov 5, 2008 @ 14:28

    Hi. thanks so much for your resources. I am new to linux, and am trying to move a joomla .zip file into the var/www/Joomla directory. I use: mv Joomla_1.5.7-Stable-Full_Package.zip var/www/Joomla but only get:

    mv: cannot move `Joomla_1.5.7-Stable-Full_Package.zip’ to `var/www’: No such file or directory
    What am I doing wrong pleaseÉ thanks

  • harshal Nov 9, 2008 @ 14:35

    i am unable to copy ‘rar’ and ‘unrar’ files to “/bin” from “/tmp/rar”.
    It says, permission denied.
    What to do.?
    I have downloaded “UNRAR 3.60 freeware ” in “/tmp”

  • Madhu R Dec 16, 2008 @ 9:13

    Thankz Wat i want excatlyyyyyyyyy

  • SK Dec 20, 2008 @ 16:24

    unrar: /lib/tls/libc.so.6: version `GLIBC_2.4′ not found (required by unrar)

    can some one help to fix this issue?

    i updated glibc

  • Yugi Dec 23, 2008 @ 9:02

    Thanks Dear, Working cool

  • Dimitrios Jan 24, 2009 @ 20:21

    Thanks! ;)

  • sam Feb 5, 2009 @ 4:02

    thank u

  • Smile Feb 9, 2009 @ 11:46

    How do I open a binary file using Linux rar – on Redhat or Ubuntu or any linux?

    When I try this command,
    unrar e install.bin
    It throws an error – install.bin is not a rar achieve.
    No Files to extract.

    So how can I extract a binary file in linux using this unrar ?

  • robert kubatz Feb 18, 2009 @ 19:52

    hi,
    sorrowly i had to use your tool because some idiots
    use it.
    did you ever here for command line conventions on unix?
    stupidy prevails

    yours robert

  • Diabolic Preacher Feb 26, 2009 @ 6:17

    I am not finding any reference for unrar syntax on Solaris 10. Should it be the same as the one for Linux as you described above?

  • rparamo Mar 18, 2009 @ 22:08

    Muchas gracias por la contribucion instale con el tar sin problemas.

    Saludos

  • Karanvir Mar 30, 2009 @ 15:49

    Open SUSE 11.0 displays error while using this command:-
    cp rar unrar /bin

    Error:-
    Permission denied

    Please help fast.

  • didir Apr 8, 2009 @ 17:04

    terima kasih / thank’s

  • Reza May 24, 2009 @ 5:20

    Hi everyone and thanks for your replys.
    I have a question,,
    Is it possible to extract rar files in server? (using cpanel or php script)?
    I have uploaded a rar file but I understood that my cpanel can’t extract the file content. How to extract it’s contents? Is it possible to use a php script? how?
    If RAR files , was in several parts, then what i can extract it?
    If files has password protection, what i do?
    thanks………….

  • Daniel Jul 17, 2009 @ 12:56

    thanks.

  • Lee Jul 20, 2009 @ 0:01

    It’s very usefull for me , thank you so much !!!

  • Arif Jul 28, 2009 @ 9:45

    Thanks a lot.

  • jeril Aug 17, 2009 @ 13:20

    hi.. i get the following while trying to install. what do i do ??
    ./unrar
    ./unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
    I try to edit /etc/ld.so.conf. what do i write in this file?. I have libstdc++.so.6 libraries at /usr/lib/libstdc++.so.6. Is there another solution ?

    • Ragesh Aug 26, 2012 @ 5:33

      Did u get the solution? I face the same problem, I’m using centOS6.3

  • fariba Aug 18, 2009 @ 10:48

    thanks, it was really helpfull

  • Justin Aug 28, 2009 @ 15:50

    in ubuntu sudo apt-get install wine after wine installs, download and install winrar for windows, works perfectly.

  • sivam Sep 5, 2009 @ 19:53

    Used the commands for SUSE LiNUX..
    Useful, thanks…

  • mamad Oct 14, 2009 @ 7:03

    Thanks sir :)

  • raja Nov 6, 2009 @ 14:42

    thanks dude.. such a good post. i am very happy now its working fine for me.
    Rajas

  • santhosh.pc Nov 11, 2009 @ 16:48

    how to open rar files in mandriva linux

  • Amrit Nov 25, 2009 @ 7:29

    thanks a lot……………..

  • shirish Dec 2, 2009 @ 5:15

    thank you very much my problem was solved with these commands

  • vijay Jan 1, 2010 @ 7:43

    hello can any1 tell me how to download .rar file (audio file). on windows XP.

  • felipe1982 Jan 5, 2010 @ 3:39

    WinRar is sh*t! Use http://www.7-zip.org all the way!

  • Joosep Jan 8, 2010 @ 22:32

    Thank You a lot. That was very helpful.

  • tpatel Jan 11, 2010 @ 18:13

    Thanks NixCraft…

  • Help Jan 17, 2010 @ 15:07

    i want to unrar a file : 12.rar

  • vamsi Jan 17, 2010 @ 22:56
  • Suraj Gupta Jan 25, 2010 @ 12:21

    I Want To UnJar Files…

  • prabhakar Feb 4, 2010 @ 6:00

    till,i m not able to extract file.what i should do.

  • Tensigh Feb 9, 2010 @ 12:38

    Is there a trick to unpacking rar archives that are segmented? I download files that are filename1.rar filename2.rar and Winrar unpacks them just fine. Linux doesn’t, and it’s pissing me off!

  • r3d0 Mar 3, 2010 @ 4:12

    lately unrar was been faling when it comes to extract..
    but i found a solution …
    apt-get install unp
    unp [FILE].[Any Compress extention]

    Easy and very quickly…
    unp is a free powerfull extraction package ..
    I like use alternatives software… for any question rcdocarv@gmail.com

  • r3d0 Mar 3, 2010 @ 4:17

    I forgot to say…
    unp extratct rar files divided in parts to, similarly explained above.

  • Tensigh Mar 3, 2010 @ 7:20

    Hey r3do, thanks for the tip. Sadly, unp still does the same thing. Looks like it’s WinRAR to the rescue again. Why doesn’t this work in Linux??? Arrrgghh!!!!

  • Mau Mar 14, 2010 @ 17:19

    Thanks it worked great! I was going crazy with this installation.

  • tensigh Mar 14, 2010 @ 21:00

    I finally got it to work! Success!!

    The trick is to stay the he*l away from unrar-free and just use unrar! I’m sure it will give Richard Stallman nightmares but the unfree version worked (finally!) This process was much easier with WinRAR and I had success much earlier, but it’s nice to finally get it to work.

    Of course, the idiots who made the spanned archives in the first place should be shot!

  • pradeep Mar 24, 2010 @ 6:40

    when i extracting the rar file it is showing that you need to volume to extraction the file and lso please insert the disk to cotinue the extration . pls help me for this proble
    and the file i am trying to extracting is 90 mb. pls send me some good solution for that.

  • Akalpita Apr 6, 2010 @ 22:55

    Thanks a lot for for useful information and step by step guide.

  • Jack Apr 20, 2010 @ 1:21

    Thank you for this post, unrar is working perfectly on my Xubuntu O/S.

  • Mal Coppola Apr 22, 2010 @ 13:45

    thanks for this post, i can unRAR stuffs from windows. soon i’ll be ditching windows for linux!

  • Ankit Apr 28, 2010 @ 7:35

    how to untar openvpn-2.1.1.tar in debian?

    • Tensigh Apr 28, 2010 @ 10:25

      Ankit, it should just be tar -xvf openvpn-2.1.1.tar. Does that work?

  • Erok May 11, 2010 @ 15:03

    If using WinSCP, make sure you set file transfer mode to FTP, not SFTP.

  • Rohini May 27, 2010 @ 12:49

    hi…
    thanks for th info

  • thefedorabug May 29, 2010 @ 4:48

    I am going to use unp anyway
    hate using proprietary software

  • DF Jun 1, 2010 @ 17:01

    clear and easy…great work

  • linuxnewb Jun 10, 2010 @ 9:17

    Thanks for that, you’ve been a real help to me. I’ve just changed to Linux recently and the lovely bastard made me cry two times. I’m still keeping it, tho:)

  • Farneville Jun 10, 2010 @ 11:56

    lols I was looking for rar command not unrar but your site came up of the 1st page of google. I was wondering if you a have a guide in compressing not decompressing anyways I’ll just use man rar and check the commands… Cheers

  • Greg Freeman Aug 11, 2010 @ 22:16

    These are great productivity tips, on macosx especially it’s a lot quicker using these tools instead of unrarx.

  • Juergen Aug 23, 2010 @ 11:16

    This was very usefull for me
    much thanks

  • mopheat Sep 2, 2010 @ 1:33

    graet… my rar file now can be open
    thanks

  • praveen Sep 2, 2010 @ 18:14

    Now im able to open.
    Thanks alot :)

  • Rob Sep 30, 2010 @ 5:53

    To unpack a single file in a multipart archive:
    $ unrar e -kb filename.rar

  • al Sep 30, 2010 @ 11:40

    hi,
    my usb was infected by a virus and all my data are in that.
    i try to open it using a win.rar folder and it works for some (not all) of the documents (word) i had in usb.
    but now i want to save them in another file on my pc.
    how can i save files form win.rar to a new folder on my pc?
    thank u

  • aman Oct 11, 2010 @ 14:40

    heloooooo sir i cant understand plz help me how i can extract .rar file in server ??

  • Jeff Jan 6, 2011 @ 17:56

    You rock! Thanks a ton for the site. I haven’t used Unix in 20 years and this had me unraring in 1 minute!

  • bruce Jan 30, 2011 @ 21:00

    very good

  • Shayari Feb 10, 2011 @ 5:53

    I was always facing problem to open a .rar file . It was showing error . Now after this my problem has been solved .Thank’s for this tip

  • Angel Feb 20, 2011 @ 16:34

    As always, thanks to you Vivek and cyberciti!

  • Arun Mar 16, 2011 @ 17:11

    Thanks, this helped a lot….

  • maadri Apr 11, 2011 @ 4:25

    thanks a lot

  • Harold May 30, 2011 @ 13:04

    hey
    i hv linux debian
    i hv used another method to install the rar and unrar file i downloaded the file extracted rar and unrar after extracting them i jumped to root terminal the typed
    “cp” dragged the file rar into the root terminal window and then typed “/bin” lastly pressed enter the file was copied to the bin folder(i saw it) i did the same thing with the unrar file and it successfully copied after all this
    i tried extracting the rar file by typing “unrar e” and dragging the file to be extracted into the root terminal window (aftr unrar e the full address of the file appeared) then i pressed enter and then i saw /bin/unrar:cannot execute binary file
    i m very upset about this prob. pls hlp me!

  • ashish Jul 13, 2011 @ 9:52

    thanks this was helpful
    first i runned
    If any of above, methods is not working for you, download binary package from official rarlab site:
    $ cd /tmp
    $ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz

    Untar file
    $ tar -zxvf rarlinux-3.6.0.tar.gz

    Both unrar and rar commands are located in rar sub-directory. Just go to rar directory:
    $ cd rar
    $ ./unrar

    Now copy rar and unrar to /bin directory:
    # cp rar unrar /bin

    then i changed my default directory to desptop where the file.rar file was and tried to unrar but it did not go right.
    then after reading it above
    i took the file.rar file by copying it to root->temp then shifted the path using cd(change directory command)to tmp (root) and then runned the unrar command it was a success

  • jose Aug 17, 2011 @ 5:28

    thank u very much it helps a lot

  • bigpush Sep 8, 2011 @ 14:49

    Thank you ! !

  • chathu Oct 20, 2011 @ 6:41

    download a program called unrar… open terminal and type sudo apt-get install unrar…
    it really works…….

  • Colin Shird Dec 9, 2011 @ 9:05

    After I initially commented I clicked the -Notify me when new feedback are added- checkbox and now every time a comment is added I get four emails with the identical comment. Is there any method you may take away me from that service? Thanks!

  • Jagdish Mar 8, 2012 @ 9:17

    Thank you very much as im using Fedora 16 and was not able to extract rar files thanks for the post it worked at first trial.
    $ cd /tmp
    $ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz
    &
    Untar file
    $ tar -zxvf rarlinux-3.6.0.tar.gz
    worked well for me.
    Thanks a Lot :)

  • abhishek Mar 22, 2012 @ 5:03

    hi
    i tried to install unrar but when i try to extract a rar file then “cant execute binary file” error msg is display.

  • Steve V Apr 19, 2012 @ 16:05

    I’ve followed the instructions for installing, and it works fine for me on RH Linux, but when I try it on Suse Linux on zseries, I get:-
    # unrar e KKPP.U8MBAF0F.D202.NSCC.POS.TMP2.TEMPA.rar
    unrar: unrar: cannot execute [Exec format error]

    Is it not supported on that platform?

  • Irene Bonta' (@sharkbait10) Jun 19, 2012 @ 9:23

    thank you very much! i’m on centos 6!
    yum install unrar doesn’t work for me, but the second method is ok! thanks a lot! bye

  • Jeremy Jul 9, 2012 @ 9:40

    Hi, I have a problem. I’m using CentOS 5.8, and I tried this, but I get:

    ./unrar: /lib/libc.so.6: version `GLIBC_2.7′ not found (required by ./unrar)

    How do I install a newer version of GLIBC?

    Thanks.

  • vish Oct 18, 2012 @ 19:03

    wow , thanks for the info its very much useful.

  • Blesson Christy Nov 14, 2012 @ 6:11

    nice….. thnx…..

  • Qasim Jan 4, 2013 @ 8:19

    CRC failed
    Unexpected end of archive
    in fedora core 6

    99% of the file is completed than this error shows :/

    plz help

  • Teenu Jul 3, 2013 @ 6:15

    thanx

  • Greg More Aug 20, 2014 @ 18:23

    I am trying to use Tails Linux (I think it is based on Debian). The “sudo apt-get install unrar” command doesn’t seem to work. Nor does the ”
    $ cd /tmp
    $ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz
    approach. Any ideas? (Please be explicit if you can – Im a real newbe at this!)

    Thanks in advance!

  • Anushree Nov 17, 2014 @ 13:39

    I am getting the following error:
    /usr/bin/unrar e test.rar
    -bash: /usr/bin/unrar: Invalid argument

    i am using Solaris10 platform and the rar file uncompresses perfectly in windows.

    please help.

  • AntonyD Jul 25, 2015 @ 12:30

    WinRar 5 and newer has a new “rar5” format option which breaks compatibility with most rar readers (file extension remains the same, to increase confusion…).
    Currently PeaZip seems able to work with new rar5 with an external pluging (that uses non-libre original unrar from RarLab), both on Windows and Linux.
    7-Zip still not supports new format, and consequently neither does p7zip for Linux.

  • richardskumat Nov 12, 2015 @ 14:22

    Debian 8 has unrar-free as a package on apt.

    sudo apt-get unrar-free

    did the job for me.

    unrar 0.0.1 Copyright (C) 2004 Ben Asselstine, Jeroen Dekkers

  • F.a.d Nov 9, 2016 @ 17:40

    thanks

  • SIMONEGA Feb 8, 2017 @ 5:09

    How do I open a Linux Auto Package file on Windows 10???:

    I’m trying to get Mods for my Sims 3 game and some CC but it is not working because all the Mods files and some of the CC are all Linux Auto Package Files and my computer applications will not open it. I used File Viewer Plus and the RAR open app but nothing works! File Info.com says the only thing that can open it is Linux. I have searched and I cannot find how to get Linux to open this package file on Windows! PLEASE HELP IT’S DRIVING ME CRAZY!!!!

  • Devis Apr 13, 2017 @ 13:22

    Hey , pls help

    when i’m running the unrar command like this –> unrar -e Lecture-9.rar
    I’m getting the below error
    bash: /usr/local/bin/unrar: cannot execute binary file

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.