Convert XAR to 7Z

Turn XAR archives into 7Z. 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

An installer package as a 7Z archive.Every file inside the XAR comes out as it was stored, in one 7Z file.

  1. What you get

    One 7Z archive that holds the files stored in the XAR. Each file is kept as it is, with nothing rewritten on the way.

    For a macOS installer package, that means its parts appear as separate items: Bom, PackageInfo, Payload and Scripts.

  2. What stays packed

    The Payload is not opened. It stays packed, just as it was in the package, so the files it holds are not listed one by one in the 7Z.

    The conversion does not turn the package into something you can run in a new way. It only moves the stored parts into a different archive format.

  3. When it stops

    If the file cannot be parsed, the conversion stops with input_corrupted. This means the input is not a XAR archive the converter can read.

    There are no options to set. The same steps run for every file.

XAR and 7Z.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 · 7Z

7-Zip Archive

7-Zip archives with strong LZMA compression.

Extensions
.7z
MIME type
application/x-7z-compressed
Kind
Archives

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

terminal
$ cv convert archive.xar archive.7z
$ cv convert archive.xar archive.7z

Questions.What people ask about XAR to 7Z.

01OF 04

Yes. XAR archives use the xar and pkg extensions, and a PKG installer package converts to a single 7Z file.

The Bom, PackageInfo, Payload and Scripts parts. Each one is kept as it was stored in the package.

No. The Payload stays packed as it was in the package.

A conversion in that direction exists. See 7Z to XAR.

More conversions.Other ways in and out of XAR and 7Z.