Convert XAR to TAR

Turn XAR archives into TAR. Every stored file is kept as it is, so an installer package gives its Bom, PackageInfo, Payload and Scripts parts with the payload still packed.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop XAR files on the dialor turn it to pick what to do

The files inside a XAR, in one TAR.Every stored file is kept as it is, and the result is a single file.

  1. What you get

    One TAR file that holds the files stored in the XAR. Files and folders sit together in one stream, and TAR does not compress anything by itself.

    A XAR is the archive behind macOS installer packages. If you convert a PKG, you get its Bom, PackageInfo, Payload and Scripts parts as separate entries.

  2. What stays packed

    Each file is kept as it is. The Payload in an installer package is still packed when it lands in the TAR, so its contents are not unpacked into folders.

  3. When it fails

    If the file could not be parsed, the conversion stops with input_corrupted. This means the XAR itself could not be read as an archive.

    To go the other way, use TAR to XAR.

XAR and TAR.What each format is.

The formats

From · XAR

XAR Archive

The archive behind macOS installer packages.

Extensions
.xar .pkg
MIME type
application/x-xar
Kind
Archives
To · TAR

Tar Archive

Unix tape archives. Files and folders in one stream, no compression by itself.

Extensions
.tar
MIME type
application/x-tar
Kind
Archives

In your code.The same XAR to TAR conversion through the API, for your app or your agent.

terminal
$ cv convert archive.xar archive.tar
$ cv convert archive.xar archive.tar

Questions.What people ask about XAR to TAR.

01OF 04

Yes. A PKG is read as a XAR, and its parts come out in the TAR: Bom, PackageInfo, Payload and Scripts.

No. Every stored file is kept as it is, so the Payload is still packed inside the TAR.

One file. The TAR holds everything from the XAR.

The file could not be parsed. The XAR could not be read as an archive, so no TAR is made.

More conversions.Other ways in and out of XAR and TAR.