Why convert PKG to RPM?
A .pkg contains Mach-O executables targeting the macOS kernel and Apple system libraries, alongside macOS filesystem paths like /Applications and /Library. An .rpm expects ELF binaries, Linux filesystem paths, and Linux package dependencies. Repackaging the Mac binaries into an RPM header produces an archive that installs files that cannot execute on Linux.
How to convert PKG to RPM
alien FREE
If the software ships a .deb for Linux, download that and run alien --to-rpm package.deb to produce an .rpm - 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 →An .rpm file is a software package for RPM-based Linux distributions such as Fedora, RHEL, CentOS, and openSUSE. Install it with sudo dnf install ./file.rpm (Fedora/RHEL) or sudo zypper…
Open .RPM 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.rpmor Flatpak for Linux - check the developer's download page or usednf search <appname>. - The
alientool converts between Linux formats (.deb,.rpm,.tgz) but has no support for macOS XAR packages.
Frequently asked questions
Can I repackage a macOS app from a `.pkg` into an RPM manually?
.pkg will not run on Linux regardless of packaging.Is there any tool that converts PKG to RPM?
I need the same software on macOS and Linux - what is the right approach?
.pkg for macOS and a .rpm or .deb for Linux, usually offered on the same download page.