You can plot the dependencies of a package using:
Other commands:
Debian
Without the package management tool (with dpkg):
With the package management tool:
Centos
With the package management tool:
see more here: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-yum.html
Arch