*** Welcome to piglix ***

Xar (archiver)

xar
Filename extension .xar
Uniform Type Identifier (UTI) com.apple.xar-archive
Magic number xar!
Latest release
1.6.1
(17 September 2012; 4 years ago (2012-09-17))
Type of format archive file format
Extended from XML, gzip
Website mackyle.github.io/xar/ github.com/mackyle/xar

Xar (short for eXtensible ARchive format) is an open source file archiver and the archiver’s file format. It was created within the OpenDarwin project and is used in Mac OS X 10.5 for software installation routines, as well as browser extensions in Safari 5.0. Xar replaced the use of gzipped pax files.

One development branch of RPM, RPM5, uses xar.

The file consists of three sections, the header, the table of contents and the heap.

Xar is different from cpio, tar or ar in that it stores the TOC (table of contents) in the beginning of the file, making appending to an archive more complicated, but making it unnecessary to scan through the archive to extract an individual contained file. The table of contents is stored as a zlib compressed, UTF-8 encoded, XML document. Each file that is stored in the Xar is independently compressed/encoded. This gives the ability to have the file(s) encoded using gzip while having another file in the same archive encoded using a different method such as bzip2.

Example Table of contents


...
Wikipedia

...