Open RAR File in Linux(Ubuntu/Debian)

RAR is a file format for data compression and archiving. It was developed by Eugene Roshal and hence the name Roshal ARchive (Thanks to wikipedia for this information).

If you need to uncompress a .rar archive file in Linux OS, u can run the command called unrar. You can install unrar with the help of the following command,

1. If u are using Fedora core/CentOS Linux then use

yum install unrar

2. For Debian Linux,

apt-get install unrar

If the above method doesnt work, You can directly download binary package from the official site here. To be simpler use wget command as below,

$ wget http:// http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz

Both rar and unrar commands are located in rar directory.

After executing the above command, copy rar and unrar to the /bin directory

$ cp rar/unrar /bin

How to use unrar
unrar command supports various options below are common options that you need to use everyday.

To extract the content of the file in current directory type command:

$ unrar e file.rar

(Please note that replace file.rar filename with your actual filename).

To read the contents of rar file:

$ unrar l file.rar

To extract (x) files with full path type command:

$ unrar x file.rar

To test (t) integrity of archive, file type command:

$ unrar t file.rar

If you are using Windows OS then opening rar files is simpler by downloading Winrar utility.

Advertisements

4 thoughts on “Open RAR File in Linux(Ubuntu/Debian)

  1. Dk says:

    The unrar command is not working ……..
    Can some one tell me how to unrar the .rar file?

    I have run the following command in Debian but now working:

    $ unrar x file.rar

    Thanks
    dK

  2. Hi DK,

    Install the binary package which is available in http://www.rarlab.com/download.htm. Then try using the command “unrar”‘

    If u still face the problem let me know the error while running the command, I will try to resolve it.

    Naveen.

  3. Devin says:

    Well I Need Some Information Please. I Am Currently Downloading A Huge File Its Divided Into 2 Parts

    file.part1.rar and file.part2.rar

    Now Normally If I Was Running Windows I Would Just Run WinRar And It Would Automatically Combine The 2 Files Back How They Are Supposed To Be. But Since Im Running Ubuntu Now I Have No Clue If This Is Going To Work.

    Any Help?

    Greatly Appreciated,
    Devin

    If You Could Just Email me At HiddenDev@hotmail.com Thanks.

  4. Lau says:

    I have the exact same problem as Devin. The file I want to extract is divided into file.rar, file.r00, file.r01 etc.

    I’m also using Ubuntu and can’t seem to find anything that is able to combine the files the same way Winrar does in Windows.

    Cheers,
    Lau

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: