Skip to content

Instantly share code, notes, and snippets.

@nicerobot
Created January 16, 2012 18:58
Show Gist options
  • Save nicerobot/1622342 to your computer and use it in GitHub Desktop.
Save nicerobot/1622342 to your computer and use it in GitHub Desktop.
Expand .pkg installers without installing
#!/bin/sh
# curl -ks https://raw.github.com/gist/1622342/pkgutil-expand.sh | sh -s *.pkg
for i in $(ls ${*:-*.pkg}); do pkgutil --expand ${i} $(basename ${i} .pkg); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment