How to open .PKG files on Linux

To open .PKG files on Linux, if you need to install it, transfer the .pkg to macOS—Linux generally can’t run macOS Installer packages.

Step-by-step instructions

  1. If you need to install it, transfer the .pkg to macOS—Linux generally can’t run macOS Installer packages.
  2. To inspect what’s inside, try extracting it with an XAR-capable tool (many macOS .pkg files are XAR archives).

Common issues

The .PKG won’t open or install on Windows/Linux

Most .pkg files are macOS installer packages and aren’t executable installers on Windows or Linux.

  1. Open the .pkg on macOS using Installer (preferred for actual installation).
  2. If you only need to inspect contents, extract it using an XAR-capable tool because many macOS .pkg files are XAR archives.

macOS shows a warning or blocks the installer

macOS may warn about packages from unidentified developers or downloaded packages that require user confirmation.

  1. Verify you obtained the .pkg from the intended vendor or administrator before proceeding.
  2. If you are in a managed environment, confirm with IT whether the package is expected and approved.

The package seems corrupted or fails mid-install

An incomplete download or transfer can break the package structure and cause Installer to fail.

  1. Re-download or re-transfer the .pkg from the original source and try again.
  2. If possible, compare file size/checksums provided by the source to confirm integrity.

You expected an app but got a .PKG

On macOS, apps are often distributed as .pkg installers rather than a single .app bundle; the installer places files into system locations.

  1. Run the .pkg with macOS Installer to install the app properly.
  2. After installation, look for the app in Applications (or the location specified by the installer).

Security note

.pkg files are installer packages and can run install-time actions; only install packages from trusted vendors or administrators.

Back to .PKG extension page