Mac O’Clock
Published in

Mac O’Clock

macOS Tips and Tricks

Expanding PKGs on macOS

Photo by seth schwiet on Unsplash

Extracting the Package Contents

If your PKG is inside of a DMG, start here.

hdiutil attach <PATH_TO_YOUR_DMG>
(EXAMPLE) hdiutil attach ~/Downloads/SF-Symbols.dmg
cd ~/Documents/
pkgutil --expand-full <PATH_TO_PKG> <FOLDER_TO_EXTRACT_TO>/
(PKG inside of DMG) pkgutil --expand-full /Volumes/<VOLUME_NAME>/<PACKAGE>.pkg <FOLDER_TO_EXTRACT_TO>/
(EXAMPLE) pkgutil --expand-full /Volumes/SFSymbols/SF\ Symbols.pkg extracted_package/
Daedalus:~/Documents/extracted_package hkamran$ ls
Distribution Resources SFSymbols.pkg
cd <PACKAGE_NAME>.pkg/Payload/; open $(pwd)
(EXAMPLE) cd SFSymbols.pkg/Payload/; open $(pwd)



The best stories for Apple owners and enthusiasts

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
H. Kamran

I am a developer experienced in Python, JavaScript, Vue.js, Swift, and Git. I write about content that I find interesting or useful to share with the world.