def get_selections():
    with settings(hide('stdout')):
        res = run_as_root('dpkg --get-selections')
    selections = dict()
    for line in res.splitlines():
        package, status = line.split()
        selections.setdefault(status, list()).append(package)
    return selections
If ``near`` is a Vector3, the items are sorted by distance to ``near``.
dataset/ETHPy150Open ronnix/fabtools/fabtools/deb.py/get_selections--crossover with--dataset/ETHPy150Open Gjum/Bat/bat/bat.py/BatPlugin.find_dropped_items