A few tools will do some hackiness to track exactly what files were installed. This allows them to 1) cleanly uninstall a package, and 2) build any manner of install packages for many different package managers.