Skip to content

Instantly share code, notes, and snippets.

@beatak
Created April 16, 2012 21:05
Show Gist options
  • Save beatak/2401506 to your computer and use it in GitHub Desktop.
Save beatak/2401506 to your computer and use it in GitHub Desktop.
how to delete files that .pkg installs on your machine...
# ${original.pkg} => the original name of .pkg file
pkgutil --expand ${original.pkg} expanded.pkg
# to find what Bom files you got
find gviz.pkg -name 'Bom'
# to show the files and directories
find gviz.pkg -name 'Bom' | xargs -I{} lsbom {}
# lsbom exports "tab delimited file". And also it's on relative path.
# but once you can get a list of files you want to delete,
cat deleting.list | xargs -I{} rm -rf {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment