Sometimes, you have these .pkg installer files on macOS. Today, I needed to extract them to see what's inside. Here's how you can do it:
1xar -xf MyInstaller.pkg
If there is a file called Payload
in there, you need to unpack it again:
1cat Payload | gunzip -dc | cpio -i
Inspiration was found on StackOverflow.
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.