Skip to content

Instantly share code, notes, and snippets.

@e1senh0rn
Created August 14, 2009 16:06
Show Gist options
  • Select an option

  • Save e1senh0rn/167914 to your computer and use it in GitHub Desktop.

Select an option

Save e1senh0rn/167914 to your computer and use it in GitHub Desktop.
# Cleanup old inactive ports
`port installed`.split("\n")[1..-1].each do |line|
unless line =~ /^\s+(.*)\(active\)$/
print "#{line}\n"
`sudo port uninstall #{line}`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment