Skip to content

Instantly share code, notes, and snippets.

@n8henrie
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n8henrie/16e2a6a7899079676100 to your computer and use it in GitHub Desktop.
Save n8henrie/16e2a6a7899079676100 to your computer and use it in GitHub Desktop.
Oneliner to batch uninstall my pyobjc libraries
# Requires GNU xargs `brew install findutils --default-names`, and I used ack instead of grep just out of habit.
# Will also leave the first item from the list out because of the weird way `$@` works, so manually uninstall it.
xargs -a <( pip3 list | ack pyobjc | cut -d " " -f 1 ) bash -c 'for f in "$@"; do echo y | pip3 uninstall "$f"; done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment