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 ...
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.
Very clear tutorial. !! Like the following video on the subject: https://www.youtube.com/watch?v=KqKE1_W0eJc
Very well explained, thank you.
brother you helped me unzip the file at the end it worked by command .. Thank you very much!
I send me a message that the rar package is obsolete :(
I have started to move a cnc with Linux and I want to use the arduino on the same computer.
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
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".
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,….
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
Thank you very much, it helped me. I migrated from windows to Linux and these easy actions do not know.
Thank you very much for the help to «Rarear»
sudo apt install rar
rar a => compress
rar x => unzip
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.
Thanks a lot