How do I open rar archive files under Linux / UNIX operating systems?
RAR files are in compressed archive format, if you have downloaded rar files from the Internet, you need to unpack or unrar them (extract rar files). RAR is a proprietary file format for data compression and archiving, developed by Eugene Roshal. The command used to extract these files is called "unrar". By default, unrar is not being installed on Linux, FreeBSD or UNIX like operating system. You can install unrar command with the help of apt-get or yum command. (See below for Windows XP / 7 unrar infomation.)
Install unrar command
Under Debian or Ubuntu Linux, you need to type apt-get command as follows to install unrar program:
# apt-get install unrar
If you are using Fedora core Linux / CentOS / RHEL, use yum command as follows (see discussion below for more):
# yum install unrar
If you are using FreeBSD, enter:
# pkg_add -v -r unrar
If any of above, methods is not working for you, download binary package from official rarlab site:
$ cd /tmp
$ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz
Next, untar file, enter:
$ tar -zxvf rarlinux-3.6.0.tar.gz
Both unrar and rar commands are located in rar sub-directory. Just cd to rar directory, type:
$ cd rar
Now copy rar and unrar file to /bin directory, type:
# cp rar unrar /bin
HowTo: Use unrar Command
The unrar command supports various options, below are common options that you need to for extracting files.
Task: Exreact rar (unpack) File
To extract file.rar file into the current directory, enter:
$ unrar e file.rar
Task: List (l) file inside rar archive:
$ unrar l file.rar
Task: To extract (x) files with full path type command:
$ unrar x file.rar
(D) To test (t) integrity of archive, file type command:
$ unrar t file.rar
How do I open rar file under MS-Windows XP/NT/2000/7?
- If you are using MS-Windows XP / 7, download Winrar. It is free download (free to try License) software.
Page last updated at 5:51 PM, January 11, 2012.Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?