At One Place

.pkg files

.pkg file
macOS Installer Package
A macOS installer that runs a guided setup, rather than a drag-and-drop app.

What opens a .pkg file

Windows
7-Zip (to inspect contents only)
macOS
Installer (built in), Suspicious Package (to inspect first), Pacifist
Linux
7z x (p7zip, to inspect contents only)

What a .pkg file is

A .pkg file is an installer archive that macOS opens with the built-in Installer app, used when software needs to place files in system locations or run scripts. Because it can run scripts as an administrator, only install packages from sources you trust; macOS Gatekeeper will refuse unsigned ones by default. The same extension is used by unrelated things — Solaris packages, PlayStation game bundles, Unreal asset files — so a .pkg that macOS refuses may simply not be a macOS package.

Converting it

A .pkg file is commonly converted to .dmg or .zip. It is a binary format, so a text editor will show unreadable characters rather than its contents.

Details

Extension
.pkg
Full name
macOS Installer Package
Category
Programs and installers
MIME type
application/vnd.apple.installer+xml
Created by
Apple
Format
Binary

Common questions

How do I open a .pkg file?
On Windows use 7-Zip (to inspect contents only); on macOS use Installer (built in); on Linux use 7z x (p7zip, to inspect contents only). A macOS installer that runs a guided setup, rather than a drag-and-drop app.
What is a .pkg file?
macOS Installer Package. A .pkg file is an installer archive that macOS opens with the built-in Installer app, used when software needs to place files in system locations or run scripts. Because it can run scripts as an administrator, only install packages from sources you trust; macOS Gatekeeper will refuse unsigned ones by default.
Can I convert a .pkg file?
Yes. It is usually converted to .dmg or .zip, either by exporting from one of the programs listed above or with a format converter.

Related pages

Sources

  1. Media Types Registry — IANA
  2. Official vendor product documentation — At One Place

How these figures are compiled and checked