Skip to content

Instantly share code, notes, and snippets.

@jeffgreenca
Last active March 26, 2019 15:48
Show Gist options
  • Save jeffgreenca/d0966a8d1a2385f3057bfa50daeef09b to your computer and use it in GitHub Desktop.
Save jeffgreenca/d0966a8d1a2385f3057bfa50daeef09b to your computer and use it in GitHub Desktop.
Remove application installed via "make install" that does not provide an uninstall. Warning, may not be safe / always work.
#!/bin/bash
# requires installwatch
sudo installwatch -o install_watch.log make install
# review the install_watch.log before doing the rest
grep unlink install_watch.log | cut -f 3 | sudo xargs rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment