def _find_types(pkgs):
    '''Form a package names list, find prefixes of packages types.'''
    return sorted({pkg.split(':', 1)[0] for pkg in pkgs
                   if len(pkg.split(':', 1)) == 2})
Form a package names list, find prefixes of packages types.