Print this Post

How to extract .rar files in ubuntu

RAR (Roshal ARchive .rar) files are one of the popular data compression methods. It was developed by Eugene Roshal. RAR files may be created only with commercial software WinRAR, As WinRAR is not an open source software, support for the RAR files is not given in the Linux distributions. So Ubuntu’s archive manager can not handle .rar file. But we can extract .rar files by installing a program called unrar. To install unrar, open terminal and run this command.

sudo apt-get install unrar

So this installs the unrar in your machine and you can open .rar files by running this command –

$ unrar e file.rar (replace file.rar with your filename/path)

To extract .rar files, open terminal and run the below command,

$ unrar x file.rar

(replace file.rar with the filename/path to the file that you want to be extracted.)

Alternately you can extract .rar files by doing Right click on .rar files and select “Extract here” (But you can not extract .rar files by the above method without installing unrar!)

For more details about RAR, please visit this wikipedia page: RAR


Follow me on twitter @prasannasp

Short Link:

About the author

Prasanna SP

Student | WordPress Dev | Tech Blogger | Interested in GNU/Linux, FOSS, PHP, Drupal, WordPress, Ethical hacking, Photography, Painting, Literature etc..

Permanent link to this article: http://www.prasannasp.net/how-to-extract-rar-files-in-ubuntu/


1 ping

Skip to comment form

  1. Ashish Renapurakar

    Hi ,
    Thanks for posting this information on your blog .

    It is help me to update the liveserver.

    Ashish Renapurkar

    1. Prasanna SP

      You’re welcome!

  2. Altha Taflinger

    Wohh just what I was searching for, regards for putting up.

  3. Ali

    when i try use the command it gives me this

    root@atomiccraft:~# sudo apt-get install unrar
    Reading package lists... Done
    Building dependency tree
    Reading state information... 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

    1. Prasanna SP

      Hi Ali, try this command,

      sudo apt-get install unrar-free

  4. Ashok

    Thanks for the information.

  5. bramhini

    sudo apt-get install unrar-free
    sudo: must be setuid root

  6. ancy sherin jose

    Thanks Prasanna. This helped me . 🙂

  7. vmuralidharanji

    Thanks a lot for your sharing knowledge

  8. K Madhan

    Thanks for the info

  9. philster

    i like how u provide some background information that winrar is commerical so it’s not standard installed with linux.

  1. Open .rar file in ubuntu | Ungeek Traveler

    […] Source : This post is reblogged from here […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code snippet between <code> and </code>. Comment moderation is in use. Please do not submit your comment twice -- it will appear shortly.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.