With dpkg such a list can be generated with for x in $(dpkg --get-selections | cut -f1) do [ -z "$(grep -E "Depends.* $x( |,|$)" /var/lib/dpkg/status)" ] && echo "$x" done -- Best regards, Jörg-Volker.