Created
April 16, 2012 21:05
-
-
Save beatak/2401506 to your computer and use it in GitHub Desktop.
how to delete files that .pkg installs on your machine...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ${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