sudo apt install debtree graphviz
to check for xyz package
debtree xyz | dot -Tpng > xyz.png
sudo apt install debtree graphviz
to check for xyz package
debtree xyz | dot -Tpng > xyz.png
not sure i exactly get what you are asking but you can install and check.