RAR (file format) explained

RAR
Screenshot:300px
Caption:RAR 2.50 for DOS and OS/2
Extension:.rar
Mime:application/x-rar-compressedapplication/octet-stream
Owner:Eugene Roshal
Genre:Data compression

In computing, RAR is a proprietary file format for data compression and archiving, developed by Eugene Roshal (hence the name RAR: Roshal ARchive).

The filename extension used by RAR is .rar. If a RAR-archive is broken into many smaller files (a "multi-volume archive"), as is often the case when it was distributed on Usenet, then those smaller files carry the extensions .rar, .r00, .r01, .r02 etc. and most unrar programs reconstruct the whole archive when provided with the .rar file.

Availability of archiver and unarchiver

Roshal created the RAR file format and developed programs for packing and unpacking RAR files, originally for DOS, which were later ported to other platforms. The main Windows version of the archiver, known as WinRAR, is distributed as trialware, requiring payment after 40 days (although it can still be used after this period, albeit with nags); shareware versions of this program are also available for Linux, Mac OS X, DOS, OS/2, and FreeBSD, though they are all called simply "RAR".

RARLAB also distributes the source code and binaries for a free command-line "unrar" program, although it is not under a free software license. There is a free software decompression library called "unrarlib", licensed under the GPL, based on an old version of unrar with permission from the author Eugene Roshal. This library is used by many free-software archivers. However, it can only decompress archives created by RAR versions up to 2.x. Archives created by RAR 2.9 and later (which are most RAR archives found today) use a different format which is not supported by the free-software library.

The mostly free software archiver 7-Zip uses a proprietary plugin under the non-free "unRAR license" for decompression of newer RAR files.

Comparison to other compression algorithms

Note that compression performance is hard to compare, as it heavily depends on the kind of data being compressed. The statements in this paragraph apply to "typical" data (text, software binaries, productivity software files). See also the section on efficiency in Comparison of file archivers.

RAR compression operations are typically much slower than compressing the same data with early compression algorithms like ZIP and gzip, but with a much better rate of compression.

7z's LZMA algorithm is quite similar to RAR in providing extremely high compression efficiency at the cost of computing time to compress and decompress. Both provide among the highest compression efficiency of any popular scheme, with the question of which algorithm is the more efficient compression scheme strongly depending on the files being compressed. Both formats are still being actively developed.

Archiver features

Apart from the rate of compression, RAR has several other original features:

MIME Type

Apache lists the default MIME-type for RAR files as application/x-rar-compressed.

See also

External links