Why convert PKG to DEB?
A .pkg is a XAR archive containing Mach-O executables targeting macOS, macOS filesystem paths, and installer scripts using macOS-specific privileges. A .deb is an ar archive containing Linux ELF binaries, Linux filesystem paths, and Debian dependency metadata. The incompatibility is at the binary level - no tool can repackage Mach-O executables to run on Linux.
How to convert PKG to DEB
alien FREE
If the software ships as an .rpm for Linux, download that RPM and run alien --to-deb package.rpm to produce a .deb - alien converts between Linux package formats but cannot process macOS .pkg files.
Programs that convert PKG
About these formats
A PKG file is a macOS Installer package - it installs software on a Mac. Double-click it to run Apple's Installer app, which will walk you through setup (admin password usually required).…
Open .PKG details →A DEB file is a software installer for Debian-based Linux systems - Ubuntu, Linux Mint, Kali, Raspberry Pi OS, and others. To use it, run sudo apt install ./package.deb in a terminal, or…
Open .DEB details →Quality & what to watch
- Extracting a
.pkgwithxar -xfyields Mach-O binaries that will not execute on Linux regardless of how they are repackaged. - Most cross-platform software that ships a
.pkgfor macOS also publishes an official.deb- check the developer's download page or runapt search <appname>first. - The
alientool converts between Linux package formats (.rpm,.deb,.tgz) but has no support for macOS XAR packages.
Frequently asked questions
Can I extract files from a `.pkg` and install them on Linux?
xar -xf file.pkg, but the files inside are macOS Mach-O binaries that will not run on Linux.Is there any tool that converts PKG to DEB automatically?
.pkg are compiled for a different OS and CPU runtime.How do I install macOS software on Linux?
apt search <appname>.