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
Cheers!
Follow me on twitter @prasannasp
Follow these topics Blog, Linux, Technology
Short Link:


7 comments
Skip to comment form ↓
Ashish Renapurakar
November 21, 2011 at 3:58 pm (UTC 5.5) Link to this comment
Hi ,
Thanks for posting this information on your blog .
It is help me to update the liveserver.
regards…
Ashish Renapurkar
Prasanna SP
November 21, 2011 at 4:15 pm (UTC 5.5) Link to this comment
You’re welcome!
Altha Taflinger
January 4, 2012 at 1:37 am (UTC 5.5) Link to this comment
Wohh just what I was searching for, regards for putting up.
Ali
October 7, 2012 at 9:33 pm (UTC 5.5) Link to this comment
when i try use the command it gives me thisroot@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
Prasanna SP
November 16, 2012 at 9:21 am (UTC 5.5) Link to this comment
Hi Ali, try this command,
Ashok
January 7, 2013 at 7:19 pm (UTC 5.5) Link to this comment
Thanks for the information.
bramhini
March 26, 2013 at 11:17 am (UTC 5.5) Link to this comment
sudo apt-get install unrar-free
sudo: must be setuid root