use apt-rdepends and some regex i copied it but can't remember sorry :(