It looks like you're new here. If you want to get involved, click one of these buttons!
Is there a tool that does the following:
Do you know about https://wiki.debian.org/CheckInstall ?
clonezilla? Sounds like you want a disk cloning tool. It won't give you a deb/rpm because it is working at the filesystem level.