# File lib/automateit/package_manager/egg.rb, line 46
  def uninstall(*packages)
    return _uninstall_helper(*packages) do |list, opts|
      # easy_install options:
      # -m : removes package from the easy-install.pth
      cmd = "easy_install -m "+list.join(" ")+" < /dev/null"
      cmd << " > /dev/null" if opts[:quiet]
      cmd << " 2>&1"

      # Parse output for paths and remove the orphaned entries
      log.info(PEXEC+cmd)
      return packages if preview?
      data = `#{cmd}`
      paths = data.scan(/^Using ([^\n]+\.egg)$/m).flatten
      for path in paths
        interpreter.rm_rf(path)
      end
    end
  end