I need to create a script for generating software installed list.
In debian based distros i found the follwing command works great
*dpkg-query -Wf '${Installed-Size}\t${Package}\n'
*In is the equivalent one that for Redhat based distros. For RPM.