How can we know if a service is shared between software?

How can we know if a service is shared between software using “dietpi-software” or “dietpi-services” ?

If by example the software A uses postgresql like also the software B, is there a way to know that in order to avoid to uninstall postegresql with software A while software B still needs it

Cheers

Charles