Unzip RAR on Linux

Unzip RAR on Linux

How does unzip RAR on Linux? As everyone will know, RAR stands for Roshal Archive and it is a proprietary format with a lossless compression algorithm. In Windows you can find WinRAR, among others, that can compress and decompress parquets of this type. Although RAR is slower than ZIP, it has a higher compression rate and better data redundancy.

Normally in Linux we are used to using tarballs (tar.gz, tar.bz2, ...) with very varied compression algorithms. But as you know, WinRAR is not available for Linux, although as we are going to teach you, you can use RAR compressors / decompressors on Linux without having to go to Wine or anything like that.

Install RAR compressor on Linux

For, install it on Debian-derived distributions, you can do the following:

sudo apt-get install rar

And if you are in any other distribution, you can type the following, once download the package, you go with "cd" from the terminal to the directory where it is and type:

gzip -dc rarlinux-X.X.X.tar.gz | tar -xvf -
cd rar
make install
cd ..
rm -R rar

And once installed, I also recommend that install unrar (if you don't already have it). For this you can use "sudo apt-get install unrar" or from a package according to your distro. And we can already use it from the command line. I advise you to see the man pages of this tool, although the basic use is simple.

How to compress RAR on Linux

For, compress a file or all of a folder:

rar a nombre_fichero_comprimido.rar nombre_fichero_a_comprimir
rar a nombre_fichero_comprimido.rar *

How to unzip RAR on Linux

Y for decompress in the same directory or in a different one:

unrar x nombre_del_rar.rar
unrar x nombre_del_rar.rar /ruta/destino/descomprimido

But if you want to have one Graphic interface To make your work much easier, install File Roller or GNOMERAR if you have a GNOME desktop or Ark if you use KDE. You can consult the software center of your distro to install them ...

Related article:
How to install Google Chrome on the different Linux distributions?

If you want to know more about how install programs on Linux, click on the link that we just left you and you will see how any type of package is installed.

The content of the article adheres to our principles of editorial ethics. To report an error click here!.

13 comments, leave yours

Leave a Comment

Your email address will not be published.



  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   LinuxVeryeasy said

    Very clear tutorial. !! Like the following video on the subject: https://www.youtube.com/watch?v=KqKE1_W0eJc

  2.   Tony said

    Very well explained, thank you.

  3.   UmBerto Rasta said

    brother you helped me unzip the file at the end it worked by command .. Thank you very much!

  4.   Oscar Sanchez Guevara said

    I send me a message that the rar package is obsolete :(

  5.   Francisco rp said

    I have started to move a cnc with Linux and I want to use the arduino on the same computer.

  6.   Luther said

    The file I want to unzip is called Client Without Music Mu Alianza 2018.rar <—-
    When I write it in the terminal, I get NameError: name 'Client_Sin_Musica_Mu_Alianza_2018_rar' is not defined

    I don't know what to do who helps me

    1.    Keveloper said

      For files that have spaces in their name, it must be placed in quotation marks to avoid errors, for example: unrar x "Client Without Music Mu Alianza 2018.rar".

  7.   emerson said

    as almost always what works for some, for others it does not work
    To use Linux you have to have Job's patience
    to think that in windows it is two clicks,….

  8.   Felipe said

    OJo that is easier than it seems, once you install rar unrar, it is already available to compress from the graphical environment, in my case I use ubuntu and I just right click and compress, ready now it appears to use .rar and decompress: D

    Source: http://www.mclarenx.com/2008/06/18/comprimir-y-descomprimir-rar-en-linux/comment-page-1/#comment-420755

  9.   Martin said

    Thank you very much, it helped me. I migrated from windows to Linux and these easy actions do not know.

  10.   Juan said

    Thank you very much for the help to «Rarear»

  11.   Leo said

    sudo apt install rar

    rar a => compress
    rar x => unzip

  12.   Johan charry said

    Easy to do and well explained. Confirmed in Open SUSE and with Ark it is easier since once the program is installed, the standard options for compressed files are enabled.