Extracting RAR Archives in Linux

Folks,
If you come across with any RAR Files and you are not able to exact the target file then unrar command is the right choice for you as tar command doesn’t support extracting RAR Archives. The installation is quite straight forward for both Ubuntu/RPM Based operating systems. If apt-get or yum is supported in your system and your apt-get/yum is able to connect to the Internet and fetch the contents for you (as in old versions of Redhat/Core yum won’t work, even though you can manually fix the repos search paths by editing the conf files) then you can follow these steps to get started.

Installing using apt-get or yum

In Ubuntu       : $ sudo apt-get install unrar
In Redhat Builds: $ sudo yum install unrar

Manual installation
For Ubuntu/RPM Builds, you can download the DEB/RPMs manually.
- For debian based builds, open this URL http://packages.debian.org/sid/i386/unrar/ to download the ‘unrar’ package, choose a nearer mirror and issue a dpkg to the file.
- For redhat based builds, open this URL http://dag.wieers.com/rpm/packages/unrar/, choose the right package for your operating system (If you have FC11/10, you can still download any older rpm, if you don’t find relative rpms for fc10-fc11), download and issue an ‘rpm -ivh’ to the downloaded file to install the package.

Once your download is complete, you may issue the below command so that it will update the repository database in your system.

$ sudo updatedb

Then you can right click (command line usage is also available) and extract the file.

Enjoy!
XyluX

Feb 28th, 2010 | Posted in Linux
  1. Veerendra
    Jun 7th, 2010 at 17:37 | #1

    Also you can install “WinRAR” using wine as well to do the same job with ease.. :)

    • XyluX
      Jun 13th, 2010 at 23:43 | #2

      Veerendra,
      Yeah of course you can do that too. But it has always been a reliable method to rely on RPMs/DEBs rather than wine installers as sometimes they suck. You never know when your running app is going to crash. ;) Take an example “Microsoft .Net”. You can install in Linux through Wine, but try running the .Net through wine package and see how many times your Linux box is crashing. :P Hope it clarifies.

      - XyluX

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>