For the Java format, see Resource Adapter. For other uses, see RAR (disambiguation).
|
This article has multiple issues. Please help improve it or discuss these issues on the talk page.
|
This article relies on references to primary sources or sources affiliated with the subject. Please add citations from reliable and independent sources. (October 2008) |
|
This article may contain original research. Please improve it by verifying the claims made and adding references. Statements consisting only of original research may be removed. (January 2012) |
|
RAR
Filename extension |
.rar, .rev, .r00, .r01 |
Internet media type |
application/x-rar-compressed |
Uniform Type Identifier |
com.rarlab.rar-archive |
Magic number |
Rar! |
Developed by |
Eugene Roshal |
Initial release |
March 1993[1] |
Type of format |
archive format |
Open format? |
No |
RAR is a proprietary[2] archive file format that supports data compression, error recovery, and file spanning. It was developed by a Russian software engineer, Eugene Roshal (the name RAR stands for Roshal ARchive), and is currently licensed to win.rar GmbH.[3]
The filename extension used by RAR is .rar
for the data volume set and .rev
for the recovery volume set. In previous versions, if a RAR-archive was split into many smaller files (a "multi-volume archive"), the smaller files used the extensions .rar
, .r00
, .r01
, .r02
etc.
Version 1 and 2 archive files were often used in conjunction with a parchive file archiver to create parity files for error recovery when using less-than-perfect file transmission and storage media such as newsgroups, satellite transmission, and optical discs. Version 3 has eliminated the need for third party post-processing.
Contents
- 1 Compression algorithm
- 2 Versions
- 3 Software
- 3.1 WinRAR
- 3.2 Other software
- 3.3 UnRAR.dll
- 4 Comparison to other compression algorithms
- 5 RAR file limitations
- 6 See also
- 7 Further reading
- 8 External links
- 9 References
|
Compression algorithm
The RAR compression utility is proprietary, with a closed algorithm. RAR is owned by Alexander L. Roshal,[2] the elder brother of Eugene Roshal. Version 3 of RAR is based on Lempel-Ziv (LZSS) and prediction by partial matching (PPM) compression, specifically the PPMd implementation of PPMII by Dmitry Shkarin.[4]
Versions
Several versions of the RAR format have been noted by third party developers:
- RAR1.3 (original, does not have "Rar!" signature)
- RAR1.5
- RAR2
- RAR3 (current) - implemented by developers of Rarlab WinRAR version 2.9 and released in WinRAR version 3.00. Many changes including:
- File extensions changed from {volume name}.rar, {volume name}.r00, {volume name}.r01, etc. to {volume name}.part001.rar, {volume name}.part002.rar, etc.
- Encryption algorithm was changed from cipher block chaining (CBC) mode to AES (Advanced Encryption Standard) with 128 bit key length.
- Encryption of both file data and file headers.
- Improved compression algorithm using 4MB dictionary size, Dmitry Shkarin's PPMII algorithm for file data, and selective preprocessing algorithms based on platform and source file type.
- Optional creation of "recovery volumes" (.rev files) with redundancy data which can be used to reconstruct missing files in a volume set.
- Support for archive files larger than 9 GB.
- Support for Unicode names.
Software
RAR files may be created only with commercial software WinRAR, RAR, and software that has permission from the licensor Alexander Roshal (Eugene's brother).[2] RAR for Pocket PC is the only freeware for creating RAR files.[citation needed]
Third-party programs that can only read (unpack) RAR files include: WinZip (Windows), 7-Zip (multiplatform), Bandizip (Windows, Mac OS X), IZArc (Windows), PeaZip (Windows, Linux), Zipeg (Windows, Mac OS X), ALZip (Windows) and PowerArchiver (Windows), along with the free version of unrar (which is available for Linux and FreeBSD). Mac OS X readers include StuffIt Expander, The Unarchiver, and Zipeg. Stuffit Expander is also available for Mac OS Classic with RAR support for this platform.
WinRAR
Main article: WinRAR
WinRAR is commercial software (with 40-day trial)[2] available for Microsoft Windows. It is the only graphical tool that can write modern RAR files (RAR version 3). WinRAR's command line equivalent, RAR, is also commercial software (with 40-day trial), available for Windows, Linux, OS X, MS-DOS, OS/2, and FreeBSD. Additionally, the unrar tool from the same distributor can be used on the aforementioned platforms to extract RAR files but not to write them.
Roshal created the RAR file format and developed programs for packing and unpacking RAR files, originally for DOS in 1993, 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 GNU/Linux, OS X, DOS, OS/2, and FreeBSD, though they are all called simply "RAR".[5]
RARLAB distributes the source code and binaries for a freeware command-line "unrar" program,[6] although it is not under a free software license. This program can only decompress/extract, not create RAR files.
Other software
- 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, but 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 library.
- The paid versions of Stuffit Expander decode RAR files.
- The freeware unarchiver Free RAR Extract Frog opens all types of RAR files and comes with short instructions in over 50 languages
- The open source software archiver 7-Zip decompresses newer RAR files using a closed-source, free-of-charge plug-in under the "unRAR license";[7] the license makes the plug-in source-available but not free software.
- The Unarchiver is another open source unarchiver which can decompress newer RAR files. The latest version requires Mac OS X v10.3.9 or higher. It does not compress files.
- The free software Linux archivers File Roller, Ark, and Xarchiver can use the free UnRAR program to decompress RAR files, if they are found in the system path.
UnRAR.dll
UnRAR.dll is a free of charge dynamic-link library (DLL) that can be downloaded from the official WinRAR site.
Comparison to other compression algorithms
Main article: Comparison of file archivers
RAR is typically slower than the "zip" command for creating ZIP files, but it has a moderately better rate of compression.[8]
7z's LZMA algorithm has a higher compression ratio than RAR, except for "multimedia" files like .wav and .bmp files, for which RAR uses specialized filters (E8, E9, Audio, Delta) that allows it to outperform LZMA.[9] Other free compression software, such as FreeArc, usually outperform WinRAR.[10]
RAR can create "recovery volumes" (.rev files), which can provide redundancy for a main archive.
RAR file limitations
The minimum size of a RAR file is 20 bytes. The maximum size of a RAR file is 9,223,372,036,854,775,807 (263-1) bytes, which is 8 exabytes.
See also
- Comparison of archive formats
- List of archive formats
- Comparison of file archivers
Further reading
- RAR Archiver Frequently Asked Questions by Eugene Roshal
- LAMPdocs: quick guide with annotation of the advantages of RAR in comparison to other file archivers
External links
References
- ^ "Interview by correspondence" (in Russian). 1997–2002 (see under 1997). http://www.compression.ru/arctest/descript/roshal.htm. Retrieved 26 April 2010.
- ^ a b c d The RAR Archiver EULA (End user license agreement) - embedded in installation files - [1][2] - states: Neither RAR binary code, WinRAR binary code, UnRAR source or UnRAR binary code may be used or reverse engineered to re-create the RAR compression algorithm, which is proprietary, without written permission of the author.
- ^ Contact to win.rar GmbH
- ^ Christian Scheurer (2006-12-17). "unrarlib FAQ". http://www.unrarlib.org/faq.html.
- ^ "win.rar GmbH and RARLAB Release WinRAR 3.80". pr.com. 2008-10-04. http://www.pr.com/press-release/109205.
- ^ "freeware UnRAR source and binaries download". RarLab.com. http://www.rarlab.com/rar_add.htm.
- ^ WinRAR and RAR archiver addons
- ^ "WinRAR vs zip". http://compressionratings.com/comp.cgi?winrar+3.93+-m3+pigz+2.1.4+-5.
- ^ "WinRAR vs 7-Zip". http://compressionratings.com/comp.cgi?winrar+3.93+-m5+7-zip+9.12b+-mx%20-md48m.
- ^ "WinRAR vs FreeArc vs NanoZip". http://compressionratings.com/comp.cgi?winrar+3.93+-m5+freearc+0.60+-mex3+freearc+0.60+-mex5+nanozip+0.07a+-m.5g%20-cD+nanozip+0.07a+-m.5g%20-cO.
Archive formats
|
|
Archiving only |
- ar
- cpio
- shar
- tar
- LBR
- BagIt
|
|
Compression only |
- bzip2
- gzip
- lzip
- lzop
- xz
- SQ
- compress
|
|
Archiving and compression |
- 7z
- ACE
- ARC
- ARJ
- Cabinet
- cfs
- cpt
- DGCA
- .dmg
- .egg
- GCA
- kgb
- LHA
- LZX
- MPQ
- PEA
- qda
- RAR
- rzip
- sit
- SQX
- UDA
- Xar
- zoo
- ZIP
|
|
Software packaging and distribution |
- deb
- pkg (Mac OS X)
- RPM
- RUNZ
- MSI
- JAR
|
|
Document packaging and distribution |
- OEB Package Format
- OEBPS Container Format
- Open Packaging Conventions
- PAQ
|
|
|
|
Data compression software
|
|
Archivers
with compression
(comparison) |
Free software |
- 7-Zip
- Ark
- File Roller
- FreeArc
- Info-ZIP
- KGB Archiver
- PAQ
- PeaZip
- The Unarchiver (decompression only)
- tar
- UPX
- Xarchiver
- Zipeg
|
|
Freeware |
- Filzip
- IZArc
- LHA
- StuffIt Expander (decompression only)
- TUGZip
- ZipGenius
- Bandizip
|
|
Commercial |
- ARC
- ALZip
- ALZip for Mac
- Archive Utility
- ARJ
- BetterZip
- JAR
- MacBinary
- PKZIP/SecureZIP
- PowerArchiver
- StuffIt
- WinAce
- WinRAR
- WinZip
|
|
|
Lossless data compression* |
Free software |
- bzip2
- compress
- gzip
- lzip
- lzop
- rzip
- xz
|
|
|
Audio compression
(comparison) |
Lossy |
- Freeware Advanced Audio Coder (FAAC)
- Helix DNA Producer
- l3enc
- LAME
- TooLAME
- libavcodec
- libcelt
- libopus
- libspeex
- Musepack
- libvorbis
- Windows Media Encoder
|
|
Lossless |
- ALAC
- FLAC
- libavcodec
- Monkey's Audio
- mp4als
- OptimFROG
- Shorten
- TTA (True Audio)
- WavPack
|
|
|
Video compression
(comparison) |
Lossy |
MPEG-4 ASP |
- 3ivx
- DivX
- Nero Digital
- FFmpeg
- HDX4
- Xvid
|
|
H.264/MPEG-4 AVC |
- CoreAVC
- Blu-code
- DivX
- FFmpeg
- Nero Digital
- QuickTime
- x264
|
|
Others |
- CineForm
- Cinepak
- DNxHD
- Helix DNA Producer
- Indeo
- libavcodec
- Schrödinger (Dirac)
- SBC
- Sorenson
- VP7
- libtheora
- libvpx
- Windows Media Encoder
|
|
|
Lossless |
- FFV1
- Huffyuv
- Lagarith
- MSU Lossless
- SheerVideo
- YULS
|
|
|
- ^* Non-archiving
- See also: compression methods and compression formats
|
|