Skip to content

Instantly share code, notes, and snippets.

@ymendel
Created July 29, 2010 21:14
Show Gist options
  • Save ymendel/499255 to your computer and use it in GitHub Desktop.
Save ymendel/499255 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
ports = `port installed | grep -v active`.split("\n")[1..-1]
ports.each do |port|
system('sudo', 'port', 'uninstall', *port.split)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment