RAR (file format)#Versions

{{Short description|Archive file format}}

{{Multiple issues|

{{original research|date=February 2016}}

{{primary sources|date=October 2008}}

}}

{{Infobox file format

| name = RAR file format

| icon =

| screenshot =

| caption =

| extension = .rar, .rev, .r00, .r01

| mime = application/vnd.rar

| uniform type = com.rarlab.rar-archive

| magic = 52 61 72 21 1A 07 00
(RAR 1.5 to 4.0)
{{nowrap|52 61 72 21 1A 07 01 00}}
(RAR 5+) [http://www.rarlab.com/technote.htm RAR 5.0 technote]

| max_size = 263-1 bytes (almost 8 exbibytes)

| developer = Eugene Roshal

| released = {{start date and age|1993|3}}{{cite web |url=http://www.compression.ru/arctest/descript/roshal.htm |title=Interview by correspondence |date=1997–2002 | language=ru |access-date=26 April 2010}}

| genre = archive format

| container for =

| contained by =

| extended from =

| extended to =

| standard =

| free = No (decompression source code publicly available, but not free software, with restriction that it "cannot be used to develop RAR (WinRAR) compatible archiver") {{cite web |last1=Roshal |first1=Alexander |title=UnRAR License |url=https://fedoraproject.org/wiki/Licensing:Unrar |website=Fedora Project wiki |publisher=Red Hat |accessdate=9 June 2019 |archiveurl=https://web.archive.org/web/20190609030529/https://fedoraproject.org/wiki/Licensing:Unrar |archivedate=9 June 2019}}

| url = {{URL|http://www.rarlab.com/|rarlab.com}}

}}

RAR is a proprietary archive file format that supports data compression, error correction and file spanning.{{cite web |url=http://www.rarlab.com/license.htm |title=RAR and WinRAR END USER LICENSE AGREEMENT (EULA) |author=win.rar GmbH |website=RARLAB |quote=The author and holder of the copyright of the software is Alexander L. Roshal. [...] 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.}} It was developed in 1993 by Russian software engineer Eugene Roshal and the software is licensed by win.rar GmbH. The name RAR stands for Roshal Archive.

File format

The filename extensions used by RAR are .rar for the data volume set and .rev for the recovery volume set. Previous versions of RAR split large archives into several smaller files, creating a "multi-volume archive". Numbers were used in the file extensions of the smaller files to keep them in the proper sequence. The first file used the extension .rar, then .r00 for the second, and then .r01, .r02, etc.

RAR compression applications and libraries (including GUI based WinRAR application for Windows, console rar utility for different OSes and others) are proprietary software, to which Alexander L. Roshal, the elder brother of Eugene Roshal, holds the copyright. 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.{{cite web|url=http://www.unrarlib.org/faq.html|title=unrarlib FAQ|author=Christian Scheurer|date=2006-12-17}}

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 one byte less than 8 EiB.{{cite web |url=http://www.softpedia.com/get/Compression-tools/WinRAR.shtml |url-status=deviated |archive-url=https://web.archive.org/web/20130720122901/http://www.softpedia.com/get/Compression-tools/WinRAR.shtml |archive-date=2013-07-20 |access-date=2013-05-01 |title=WinRAR description}}

=Versions=

The RAR file format revision history:

  • 1.3 – the first public version, does not have the "Rar!" signature.
  • 1.5 – changes are not known.
  • 2.0 – released with WinRAR 2.0 and Rar for MS-DOS 2.0; features the following changes:
  • Multimedia compression for true color bitmap images and uncompressed audio.
  • Up to 1 MB compression dictionary.
  • Introduces archives data recovery protection record.
  • 2.9WinRAR 5.0 and RAR for Android refer to this format as RAR4. – released in WinRAR version 3.00. Feature changes in this version include:
  • File extensions is changed from {volume name}.rar, {volume name}.r00, {volume name}.r01, etc. to {volume name}.part001.rar, {volume name}.part002.rar, etc.
  • Encryption of both file data and file headers.
  • Improves compression algorithm using 4 MB dictionary size, Dmitry Shkarin's PPMII algorithm for file data.
  • Optional creation of "recovery volumes" (.rev files) for error correction, which can be used to reconstruct missing files in a volume set.
  • Support for archive files larger than 9 GB.
  • Support for Unicode file names stored in UTF-16 little endian format.
  • 5.0 – supported by WinRAR 5.0 (released April 2013) and later.[https://www.ghacks.net/2013/04/29/winrar-5-0-introduces-the-new-rar-5-format-what-you-need-to-know/ WinRAR 5.0 introduces the new RAR 5 format. What you need to know] - ghacks.net Changes in this version:
  • Maximum compression dictionary size increased to 1 GB (default for WinRAR 5.x is 32 MB and 4 MB for WinRAR 4.x).
  • Maximum path length for files in RAR and ZIP archives is increased up to 2048 characters.
  • Support for Unicode file names stored in UTF-8 format.
  • Faster compression and decompression.
  • Multicore decompression support.
  • Greatly improves recovery.
  • Optional AES encryption increased from 128-bit to 256-bit.
  • Optional 256-bit BLAKE2 file hash instead of a default 32-bit CRC32 file checksum.
  • Optional duplicate file detection.
  • Optional NTFS hard and symbolic links.
  • Optional Quick Open Record. Rar4 archives had to be parsed before opening as file names were spread throughout the archive, slowing operation particularly with slower devices such as optical drives, and reducing the integrity of damaged archives. Rar5 can optionally create a "quick open record", a special archive block at the end of the file that contains the names of files included, allowing archives to be opened faster.
  • Removes specialized compression algorithms for Itanium executables, text, raw audio (WAV), and raw image (BMP) files; consequently some files of these types compress better in the older RAR (4) format with these options enabled than in RAR5.
  • 5.0+ – partially supported by WinRAR 5.0 and later. Fully supported by WinRAR 7.0 (released February 2024[https://www.win-rar.com/singlenewsview.html?&L=0&tx_ttnews%5Btt_news%5D=251&cHash=843e9e875ad0ca0e28e4b14ef34d17cd WinRAR News: WinRAR 7.00 Final released]) and later. Changes in this version:
  • Compression dictionary up to 64 GB.
  • Improved compression by the addition of "Alternate search algorithm".
  • Maximum path length limit increased from 2047 to 65535 characters.

;Notes

{{reflist|group=note}}

Software

{{Main|Comparison of file archivers}}

=Native operating system support=

RARlab's native software is available for Microsoft Windows (named WinRAR), Linux, FreeBSD, macOS, and Android; archive extraction is supported natively in ChromeOS. WinRAR and RAR for Android support the graphical user interface (GUI); other versions named RAR run as console commands.

=Creating RAR files=

RAR files can only be created with proprietary WinRAR (Windows), RAR{{Cite web|url=https://play.google.com/store/apps/details?id=com.rarlab.rar&hl=en_US|title=RAR - Apps on Google Play|website=play.google.com|language=en|access-date=2019-01-31}} for Android, command-line RAR (available for Windows, macOS, Linux, and FreeBSD), and other software that has written permission from Alexander Roshal or uses copyrighted code under license from Roshal. The software license agreements forbid reverse engineering.

=Third-party software for extracting RAR files=

Several programs can unpack the file format.

  • RARLAB distributes the C++ source code and binaries for a command-line unrar program.{{cite web |url= http://www.rarlab.com/rar_add.htm |title= RarLab downloads: freeware UnRAR source and binaries download |work= RarLab.com}} The license states: "The source code of UnRAR utility is freeware". The license permits its use to produce software capable of unpacking, but not creating, RAR archives, without having to pay a fee. It is not a free software license.
  • 7-Zip, a free and open-source program, starting from 7-Zip version 15.06 beta{{Cite web |title = 7-Zip / Discussion / Open Discussion: 7-Zip 15.06 beta |url = http://sourceforge.net/p/sevenzip/discussion/45797/thread/c611394e/ |website = sourceforge.net |access-date = 2015-10-24}} can unpack RAR5 archives, using the RARLAB unrar code.
  • PeaZip is a free RAR unarchiver, licensed under the LGPLv3-or-later and via 7-Zip can unpack RAR archives, using RARLAB unrar.[https://peazip.github.io/ PeaZip website] with info about RAR5 extraction.
  • The Unarchiver is a proprietary freeware software unarchiver for Mac for RAR and other formats. It was previously free software licensed under the LGPLv2.1-or-later, up to version 3.11.1 (released 2016), which at the time provided a free-software implementation of extraction of RAR versions up to RAR5.{{cite web |url=http://unarchiver.c3.cx/unarchiver |title=The Unarchiver |website=The Unarchiver |archive-url=https://web.archive.org/web/20170621200637/http://unarchiver.c3.cx/unarchiver |archive-date=2017-06-21}}{{cite web |url=http://www.fsf.org/blogs/licensing/free-rarv3-extraction |title=Another High Priority Project done: The Unarchiver provides free RARv3 extraction tools |website=Free Software Foundation |access-date=2024-02-18}}{{cite web |url=http://unarchiver.c3.cx/changes |title=The Unarchiver changes |website=The Unarchiver |archive-url=https://web.archive.org/web/20170706222632/http://unarchiver.c3.cx/changes |archive-date=2017-07-06}}{{cite web |url=https://github.com/incbee/Unarchiver/blob/master/License.txt |title=The Unarchiver source code from 2016 is licensed under the GNU Lesser General Public License v2.1 |date=2011-05-11 |website= GitHub|publisher= |access-date=2024-02-18}} There is a free software (LGPLv2.1-or-later) command-line version, {{mono|unar}}, forked from 2016, which runs on Mac, Windows, and Linux.{{cite web |url=https://theunarchiver.com/command-line |title=Unar and Lsar - Command Line Tools for The Unarchiver |website=The Unarchiver |access-date=2024-02-18}}, including The Unarchiver source code from 2016.{{cite web |url=https://github.com/MacPaw/XADMaster/blob/master/LICENSE |title= MacPaw/XADMaster is licensed under the GNU Lesser General Public License v2.1 |date=2018-03-21 |website= GitHub|publisher= |access-date=2021-11-23}}
  • UNRARLIB (UniquE RAR File Library) was an obsolete free software unarchiving library called "unrarlib", licensed under the GPLv2-or-later. It could only decompress archives created by RAR versions prior to 2.9; archives created by RAR 2.9 and later use different formats not supported by this library. The original development-team ended work on this library in 2007. {{cite web | url= http://www.unrarlib.org/features.html | title= Features | date= 2002 | website= UnRarLib.org | publisher= UniquE RAR File Library }} {{cite web | url= http://www.unrarlib.org/faq.html | title= FAQ | website= UnRarLib.org | publisher= UniquE RAR File Library | date= December 2011 }}

{{cite web

| url= http://www.unrarlib.org/

| title= Home

| website= UnRarLib.org

| publisher= UniquE RAR File Library

| date= 2007

}}

  • libarchive, a free and open-source library for reading and writing a variety of archive formats, with partial support for all RAR versions, including RAR5. {{cite web | title = List of formats supported by libarchive | website = GitHub | url = https://github.com/libarchive/libarchive/wiki/LibarchiveFormats#archive-formats-supported |access-date = 2021-05-01 }} The code was written from scratch using RAR's “technote.txt” format description.{{Cite web|url=https://github.com/libarchive/libarchive/issues/151|title=Support for RAR · Issue #151 · libarchive/Libarchive|website=GitHub}}
  • Microsoft announced (May 23, 2023){{Cite web |last=Panay |first=Panos |date=2023-05-23 |title=Bringing the power of AI to Windows 11 – unlocking a new era of productivity for customers and developers with Windows Copilot and Dev Home |url=https://blogs.windows.com/windowsdeveloper/2023/05/23/bringing-the-power-of-ai-to-windows-11-unlocking-a-new-era-of-productivity-for-customers-and-developers-with-windows-copilot-and-dev-home/ |access-date=2023-05-26 |website=Windows Developer Blog |language=en-US}} native support for additional archive formats in Windows 11, including tar, 7-zip, rar, gz and many others using the libarchive open-source project. Recently (July 16, 2023), there have been Insider builds that have native support. It’s said{{by whom|date=November 2024}} to come out in version 23H2.{{cn|date=November 2024}}

Other uses of ''rar''

The filename extension rar is also used by the unrelated Resource Adapter aRchive file format.{{cite web

|url= https://docs.oracle.com/javaee/5/tutorial/doc/bncjy.html

|title= The Java EE 5 Tutorial

|access-date= 2017-12-02

}}{{cite web

|url= https://www.allacronyms.com/RAR/Resource_Adapter_Archive

|title= RAR abbreviation stands for Resource Adapter Archive

|access-date= 2017-12-02

}}{{cite web

|url= https://acronyms.thefreedictionary.com/Resource+Adapter+aRchive

|title= Resource Adapter aRchive - How is Resource Adapter aRchive abbreviated?

|access-date= 2017-12-02

}}{{cite web

|url= https://docs.oracle.com/cd/E12839_01/web.1111/e13732/packdepl.htm#ADAPT228

|title= 9 Packaging and Deploying Resource Adapters

|access-date= 2017-12-02

}}{{cite web

|url= https://maven.apache.org/plugins/maven-rar-plugin/

|title= Apache Maven RAR Plugin

|access-date= 2017-12-02

}}{{cite web

|url= https://stackoverflow.com/questions/30172130/is-resource-adapter-archive-rar-the-same-as-roshal-archive-rar

|title= java - Is Resource Adapter Archive (RAR) the same as Roshal ARchive (RAR)? - Stack Overflow

|access-date= 2017-12-02

}}

See also

References

{{Reflist}}

{{Archive formats}}

{{Compression Software Implementations}}

{{DEFAULTSORT:Rar}}

Category:Computer-related introductions in 1993

Category:Archive formats

Category:Russian inventions