Originally Posted by sspp
I am not sure if i have put my question clearly. My aim is to get the list of installed applications and a single install path for each appliation.
for example: apache - /usr/bin - something of this sort. Not in this way - /usr/bin/xx.exe, /usr/include/yy.h
Your question is clear, as far as I'm concerned, but the idea behind it is wrong as there generally speaking are no "single install paths" (OK, other than those decided by the compile-time --prefix switch like /, /usr, /opt, /usr/local). See the FSSTND, FHS, LSB or whatever other system layout standard is current.