What Is a XAR File and How Does macOS Use It?
XAR is an archive format originally developed by Apple and later adopted as an open standard. macOS uses XAR as the container format for .pkg installer packages. Each .pkg file is a XAR archive containing a Bill of Materials, package metadata (PackageInfo), and a compressed payload with the files to be installed. Developers and system administrators inspect XAR contents to verify what a .pkg installer will write to disk before running it.
How Do You Extract a XAR File on Mac?
Drag the .xar or .pkg file onto UnFox. The app reads the XAR table of contents (stored as XML) and extracts all archive entries to a folder. You can inspect the Bill of Materials, read the PackageInfo metadata, and examine the compressed payload. This approach is safer than running an installer because no files are written to system directories.
XAR is one of 36 formats UnFox supports, alongside other Apple formats like DMG and system archive types. all supported archive and package formats for Mac.
UnFox installs from the Mac App Store and handles XAR extraction without configuration. download UnFox free for Mac from the App Store.