Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just realized I can't unrar .rar files on my Ubuntu machine!

What's the easiest way to accomplish this fundamental task? If possible I'd love something like 7Zip that I can just right Click, and extract and have the program worry about how to do it regardless if it's a .zip, a .rar or a .foo compressed file.

share|improve this question
This should be possible. What happens when you try? – ændrük May 10 '11 at 14:37
@Andre: I recieved an error message saying I had to install new software. So I searched and it automatically installed a plugin, now it works fine. – Only Bolivian Here May 10 '11 at 14:52
From the command line, i always 'cheat' and install the 'unp' package - its a command line script that can auto detect and properly extract most common archives, if you have the proper archive programs installed. Just wanted to mention something people often overlook. – dr_willis May 10 '11 at 16:23
up vote 31 down vote accepted

Ubuntu by default uses File Roller, which supports following formats:

7-Zip Compressed File (.7z)
WinAce Compressed File (.ace)
ALZip Compressed File (.alz)
AIX Small Indexed Archive (.ar)
ARJ Compressed Archive (.arj)
Cabinet File (.cab)
UNIX CPIO Archive (.cpio)
Debian Linux Package (.deb) read-only
ISO-9660 CD Disc Image (.iso) read-only
Java Archive (.jar)
Java Enterprise archive (.ear)
Java Web Archive (.war)
LHA Archive (.lzh, .lha)
WinRAR Compressed Archive (.rar)
RAR Archived Comic Book (.cbr)
RPM Linux Package (.rpm) read-only
Stuffit Archives (.bin, .sit)
Tar Archives:
    uncompressed (.tar)
    compressed with:
        gzip (.tar.gz , .tgz)
        bzip ( , .tbz)
        bzip2 (.tar.bz2 , .tbz2)
        compress (.tar.Z , .taz)
        lzip (.tar.lz , .tlz)
        lzop (.tar.lzo , .tzo)
        7zip (.tar.7z)
        xz (.tar.xz)
ZIP Archive (.zip)
ZIP Archived Comic Book (.cbz)
ZOO Compressed Archive File (.zoo)
Single files compressed with gzip, bzip, bzip2, compress, lzip, lzop, rzip, xz.

Keep in mind, that this is just graphical front-end, so you still need to install unrar for .rar support;

The unrar package is hosted on the Multiverse repository, so first you'll need to enable the Multiverse repository in Software & Updates;

Then you can install the package either by using Software Centre or by opening Terminal and running sudo apt-get install unrar; exit.

share|improve this answer
Try installing the package rar or perhaps unrar, which should enable you to extract rar files. – loevborg May 10 '11 at 16:09
Updated answer. – vartec May 10 '11 at 16:34

You could read man unrar.

From terminal you can use next command:

unrar e -r /home/work/software/myfile.rar

Or, the following command if you want to preserve the directory structure too:

unrar x -r /home/work/software/myfile.rar
share|improve this answer
First you need to run sudo apt-get install unrar to install unrar. – Nicolas Raoul Nov 21 '14 at 2:41
Lol.. please edit your answer and ask guys to install it before using it – vipin8169 Mar 30 at 6:43

Install unrar from the software center or by clicking here and then you can extract rar files by right-clicking on them .

share|improve this answer

If you like then you can also use p7zip-full package. You can install it as:

sudo apt-get install p7zip-full p7zip-rar

The main purpose of this package is to provide 7z and 7za file archivers with high compression ratio.

share|improve this answer

protected by Community Jun 4 '13 at 6:03

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.